{"id":"CVE-2024-43370","aliases":["DEBIAN-CVE-2024-43370","EUVD-2024-2670","GHSA-vwhg-jwr4-vxgg","UBUNTU-CVE-2024-43370"],"status":"published","title":"gettext.js vulnerable to cross-site scripting (XSS)","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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0038,"percentile":0.32292,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2024-08-15T18:06:50Z","modified":"2026-11-02T12:03:00Z","fixes":[{"ecosystem":"npm","package":"gettext.js","fixed_in":["2.0.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"gettext.js","fixed_in":["0.7.0-2+deb11u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"gettext.js","fixed_in":["0.7.0-4"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"gettext.js","fixed_in":["0.7.0-4"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-2+deb11u1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-4"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-4"}]}]},{"source":"osv","ecosystem":"npm","package":"gettext.js","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.3"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.3-1","0.5.4-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.4-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"gettext.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-3"]}],"products":[{"vendor":"guillaumepotier","product":"gettext.js"}],"references":[{"url":"https://github.com/guillaumepotier/gettext.js/security/advisories/GHSA-vwhg-jwr4-vxgg","tags":["x_refsource_CONFIRM","advisory","web","report"]},{"url":"https://github.com/guillaumepotier/gettext.js/commit/8150aeba833183e14c2291a8a148b8f79d1d68d8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43370","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vwhg-jwr4-vxgg"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43370.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-43370","tags":["advisory"]},{"url":"https://github.com/guillaumepotier/gettext.js","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-43370","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-43370","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-43370","title":"gettext.js vulnerable to cross-site scripting (XSS)","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.","status":"published","published":"2024-08-15T23:44:47.808Z","modified":"2024-08-16T15:10:20.251Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:58.357949Z"}],"euvd":[{"id":"EUVD-2024-2670","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.","status":"published","published":"2024-08-15T23:44:47Z","modified":"2024-08-16T15:10:20Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"updated_at":"2026-11-03T00:56:16.665209Z"}],"ghsa":[{"id":"GHSA-vwhg-jwr4-vxgg","title":"gettext.js has a Cross-site Scripting injection ","description":"### Impact\nPossible vulnerability to XSS injection if .po dictionary definition files is corrupted\n\n### Patches\nUpdate gettext.js to 2.0.3\n\n### Workarounds\nMake sure you control the origin of the definition catalog to prevent the use of this flaw in the definition of plural forms.\n","status":"published","published":"2024-08-15T18:06:50Z","modified":"2024-08-16T18:15:40Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:59.336921Z"}],"nvd":[{"id":"CVE-2024-43370","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.","status":"published","published":"2024-08-16T02:15:17.487Z","modified":"2026-06-17T07:50:54.177Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:10:19.135392Z"}],"osv":[{"id":"CVE-2024-43370","title":"gettext.js vulnerable to cross-site scripting (XSS)","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.","status":"published","published":"2024-08-15T23:44:47.808Z","modified":"2026-10-28T02:30:37.017921029Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:42.322107Z"},{"id":"DEBIAN-CVE-2024-43370","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.","status":"published","published":"2024-08-16T02:15:17.487Z","modified":"2026-11-02T12:03:00.332056849Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:43.473331Z"},{"id":"GHSA-vwhg-jwr4-vxgg","title":"gettext.js has a Cross-site Scripting injection ","description":"### Impact\nPossible vulnerability to XSS injection if .po dictionary definition files is corrupted\n\n### Patches\nUpdate gettext.js to 2.0.3\n\n### Workarounds\nMake sure you control the origin of the definition catalog to prevent the use of this flaw in the definition of plural forms.\n","status":"published","published":"2024-08-15T18:06:50Z","modified":"2024-08-16T18:15:39Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:57.694388Z"},{"id":"UBUNTU-CVE-2024-43370","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.","status":"published","published":"2024-08-16T02:15:00Z","modified":"2025-10-24T05:11:48Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T16:54:58.679387Z"}]}}
