CVE-2024-43370

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-43370
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43370.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-43370
Aliases
Downstream
Published
2024-08-15T23:44:47Z
Modified
2025-10-15T13:07:41.357400Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
gettext.js vulnerable to cross-site scripting (XSS)
Details

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.

References

Affected packages

Git / github.com/guillaumepotier/gettext.js

Affected ranges

Type
GIT
Repo
https://github.com/guillaumepotier/gettext.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.1
0.0.2
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.6.0
0.7.0

v0.*

v0.8.0
v0.9.0

v1.*

v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.2.0

v2.*

v2.0.0
v2.0.1
v2.0.2