Description
Shamefile is a linter for undocumented linter warnings. Prior to version 0.1.7, 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. The issue is fixed in 0.1.7. Upgrade to either 0.1.7 or later versions to incorporate the patch. As a workaround, do not run `shame next` against untrusted `shamefile.yaml`. Use `shame me --dry-run` for CI validation.
Severity (CVSS)
| Base score | 5.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| BKDDFS | shamefile | < 0.1.7 |
References
- https://github.com/BKDDFS/shamefile/security/advisories/GHSA-x6p3-76f2-xxvh (x_refsource_CONFIRM)
- https://github.com/BKDDFS/shamefile/pull/80 (x_refsource_MISC)
- https://github.com/BKDDFS/shamefile/commit/77b0aeea318503582818c708518c601fedc43557 (x_refsource_MISC)
- https://github.com/BKDDFS/shamefile/releases/tag/v0.1.7 (x_refsource_MISC)
- https://github.com/pypa/advisory-database/tree/main/vulns/shamefile/PYSEC-2026-3065.yaml (x_refsource_MISC)
Generated from the official CVE List on 21 Jul 2026 07:01 UTC.