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

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2024-08-15T18:06:50.000Z
- Modified: 2026-06-17T07:50:54.177Z
- Also known as: GHSA-vwhg-jwr4-vxgg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- guillaumepotier gettext.js: < 2.0.3
- gettext.js (npm): before 2.0.3

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/guillaumepotier/gettext.js/security/advisories/GHSA-vwhg-jwr4-vxgg> (web)
- <https://github.com/guillaumepotier/gettext.js/commit/8150aeba833183e14c2291a8a148b8f79d1d68d8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43370> (advisory)
- <https://github.com/guillaumepotier/gettext.js> (package)

## Sources

- CVE List: [CVE-2024-43370](https://www.cve.org/CVERecord?id=CVE-2024-43370), CVE Terms of Use, modified 2024-08-16
- GitHub Advisory Database: [GHSA-vwhg-jwr4-vxgg](https://github.com/advisories/GHSA-vwhg-jwr4-vxgg), CC-BY-4.0, modified 2024-08-16
- NVD: [CVE-2024-43370](https://nvd.nist.gov/vuln/detail/CVE-2024-43370), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43370 · Whole record: https://cve.day/CVE-2024-43370.json · Rebuilt by cve.day 2026-11-25T22:58:44.434Z
