VDB
KO
MEDIUM 5.5

PYSEC-2026-3065

Shamefile has an arbitrary file read via shamefile.yaml in shame next

Quick fix

PYSEC-2026-3065 — shamefile: upgrade to the fixed version with the command below.

pip install --upgrade 'shamefile>=0.1.7'

Details

### Impact

A path traversal vulnerability in `shame next` allows an attacker-controlled `shamefile.yaml` to disclose contents of files outside the repository, one line at a time, to the terminal of a user who runs the command. See patch commit for technical details.

### Patches

Fixed in 0.1.7. Upgrade to either 0.1.7 or later versions to incorporate the patch.

### Workarounds

Do not run `shame next` against untrusted `shamefile.yaml`. Use `shame me --dry-run` for CI validation.

### Resources

- Patch commit: https://github.com/BKDDFS/shamefile/commit/77b0aeea318503582818c708518c601fedc43557 - Pull request: https://github.com/BKDDFS/shamefile/pull/80 - Release: https://github.com/BKDDFS/shamefile/releases/tag/v0.1.7 - [CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / shamefile
Introduced in: 0 Fixed in: 0.1.7
Fix pip install --upgrade 'shamefile>=0.1.7'

References