HighGHSA-h4m5-qpfp-3mpvCVE-2021-42771PYSEC-2021-421

Directory Traversal in Babel

Published 21 Oct 2021 · Updated 12 Sept 2024

Is your project on an affected babel?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

babelPyPI
Affected
<2.9.1
Fixed in
2.9.1
Update to the fixed version for your release line, for example:pip install 'babel>=2.9.1'

Details

Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized Python objects) via directory traversal, leading to code execution.

Is GHSA-h4m5-qpfp-3mpv in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected babel, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.