{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-43370","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.","descriptionLong":"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.","published":"2024-08-15T23:44:47.808Z","updated":"2026-10-28T02:30:37.017921029Z","reserved":"2024-08-09T14:23:55.513Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"high","source":"GitHub_M"},"metrics":[{"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","rating":"high","source":"GitHub_M"},{"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","rating":"high","source":"github.com"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["guillaumepotier gettext.js"],"affectedProducts":[{"vendor":"guillaumepotier","product":"gettext.js","defaultStatus":null,"versions":[{"version":"< 2.0.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"gettext.js","purl":"pkg:npm/gettext.js","ranges":["<2.0.3"],"fixed":["2.0.3"],"advisory":"GHSA-vwhg-jwr4-vxgg"}],"cwes":["CWE-79"],"aliases":["GHSA-vwhg-jwr4-vxgg"],"references":[{"url":"https://github.com/guillaumepotier/gettext.js/security/advisories/GHSA-vwhg-jwr4-vxgg","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/guillaumepotier/gettext.js/commit/8150aeba833183e14c2291a8a148b8f79d1d68d8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43370.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43370","tags":["advisory"]},{"url":"https://github.com/guillaumepotier/gettext.js","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0038,"epssPercentile":0.32693,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-43370","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43370","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-43370","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vwhg-jwr4-vxgg","ok":true,"note":"GHSA-vwhg-jwr4-vxgg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-43370","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}