Skip to content
Fencer Vulns
high 7.2

CVE-2024-43370 json

gettext.js vulnerable to cross-site scripting (XSS)

published 2024-08-15 2 y ago modified 2026-06-17 4 mo ago also GHSA-vwhg-jwr4-vxgg , EUVD-2024-2670

cvss
7.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 32%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm gettext.js 2.0.3
  • gettext.js Debian 12 0.7.0-2+deb11u1
  • gettext.js Debian 14, Debian 13 0.7.0-4

debian advisories DEBIAN-CVE-2024-43370

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
GitHub 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm gettext.js
<2.0.3
2.0.3

Affected products

  • guillaumepotier gettext.js

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.