CVEfocus › CVE database › CVE-2024-43370

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

CVSS 7.2 HighEPSS 0.6% (higher than 44% of CVEs)Published 2024-08-15Updated 2024-08-16Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
2Under investigation
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gettext.jsNot affected
vulnerable_code_not_present
Ubuntu 25.10gettext.jsNot affected
vulnerable_code_not_present
Ubuntu 24.04gettext.jsUnder investigationUBUNTU-CVE-2024-43370
Ubuntu 22.04gettext.jsUnder investigationUBUNTU-CVE-2024-43370
Ubuntu 20.04gettext.jsFix pendingUBUNTU-CVE-2024-43370
Ubuntu 18.04gettext.jsFix pendingUBUNTU-CVE-2024-43370
Debian 14gettext.jsFixed0.7.0-4DEBIAN-CVE-2024-43370
Debian 13gettext.jsFixed0.7.0-4DEBIAN-CVE-2024-43370
Debian 12gettext.jsFixed0.7.0-2+deb11u1DEBIAN-CVE-2024-43370
npm librarygettext.jsFixed2.0.3GHSA-vwhg-jwr4-vxgg

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.