Is babel 2.8 vulnerable?
PyPI · 2 releases from 2.8.0 to 2.8.1 · latest babel is 2.18.0 · checked 18 Nov 2026
Yes: 1 known advisory
Yes. babel 2.8.1, the last 2.8 release, is affected by 1 known security advisory (1 high), including CVE-2021-42771. Upgrade to 2.9.1 or later to fix all of them.
pip install 'babel>=2.9.1'Is your project on an affected babel?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting babel 2.8.1
Directory Traversal in Babel
- Affected
- <2.9.1
- Fixed in
- 2.9.1
Every babel 2.8.x release
Affected: 2.8.0 to 2.8.1. Latest babel: 2.18.0.
| Version | Known advisories |
|---|---|
| babel 2.8.1 | CVE-2021-42771 |
| babel 2.8.0 | CVE-2021-42771 |
Which of your client projects are still on babel 2.8?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact babel version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other babel versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.