Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

Client metadata path-traversalGHSA-wjw6-2cqr-j4qr

HIGHFix: theupdateframework/python-tuf@4ad7ae4

GHSA-wjw6-2cqr-j4qr is a high-severity (CVSS 7.5) Path Traversal vulnerability in tuf. A fix is available for tuf — see the affected versions and patch details below.

Also known asCVE-2021-41131PYSEC-2021-376
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs73th percentile — riskier than 73% of all scored CVEsHighest risk
0.14%0.75%1.35%1.95%0.6%1.4%1.5%1.5%Jun 26Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

GHSA-wjw6-2cqr-j4qr by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 384,993 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐍tuf

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Impact

In both clients (tuf/client and tuf/ngclient), there is a path traversal vulnerability that in the worst case can overwrite files ending in .json anywhere on the client system on a call to get_one_valid_targetinfo(). It occurs because the rolename is used to form the filename, and may contain path traversal characters (ie ../../name.json).

The impact is mitigated by a few facts:

  • It only affects implementations that allow arbitrary rolename selection for delegated targets metadata
  • The attack requires the ability to A) insert new metadata for the path-traversing role and B) get the role delegated by an existing targets metadata
  • The written file content is heavily restricted since it needs to be a valid, signed targets file. The file extension is always .json.

Patches

A fix is available in version 0.19 or newer.

Workarounds

None that do not require code changes. Clients can restrict the allowed character set for rolenames, or they can store metadata in files named in a way that is not vulnerable: neither of these approaches is possible without modifying python-tuf.

References

For more information

If you have any questions or comments about this advisory:

  • Open an issue in python-tuf
  • Contact the maintainers by email or Slack

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPItufall versions0.19.0pip install --upgrade 'tuf==0.19.0'

Affected Products

1 product · 1 configurations
Application
the update frameworklinuxfoundation
≤ 0.18.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for tuf, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update tuf to 0.19.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-wjw6-2cqr-j4qr is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Frequently Asked Questions

### Impact In both clients (`tuf/client` and `tuf/ngclient`), there is a path traversal vulnerability that in the worst case can overwrite files ending in `.json` anywhere on the client system on a call to `get_one_valid_targetinfo()`. It occurs because the rolename is used to form the filename, and may contain path traversal characters (ie `../../name.json`). The impact is mitigated by a few facts: * It only affects implementations that allow arbitrary rolename selection for delegated targets metadata * The attack requires the ability to A) insert new metadata for the path-traversing role an
O3 Security · Impact-Aware SCA

Is GHSA-wjw6-2cqr-j4qr in your dependencies?

Find it across PyPI, including transitive dependencies.

Client metadata path-traversal (High 7.5)