CVE-2024-43370guillaumepotier gettext.js
High 7.2 No auth needed
Follow: this CVE · guillaumepotier · guillaumepotier gettext.js We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 3.1
- 7.2
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 44
- Auth required
- No
- Published
- Aug 16, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
What happens
gettext.js is a GNU gettext port for node and the browser. There is a cross-site scripting (XSS) injection if `.po` dictionary definition files are corrupted. This vulnerability has been patched in version 2.0.3. As a workaround, control the origin of the definition catalog to prevent the use of this flaw in the definition of plural forms.
What to do
- Apply the vendor's security update for gettext.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | gettext.js |
< 2.0.3 |
2.0.3 |
npm install gettext.js@2.0.3 |
Per OSV / GitHub Advisories (GHSA-vwhg-jwr4-vxgg). Check the version in your lockfile before upgrading.
Affected products
- guillaumepotier · gettext.js
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.