{"id":"CVE-2023-2142","aliases":["GHSA-x77j-w7wf-fjmw"],"url":"https://o3.security/vulnerability/CVE-2023-2142","summary":"Nunjucks autoescape bypass leads to cross site scripting","details":"In Nunjucks versions prior to version 3.2.4, it was \npossible to bypass the restrictions which are provided by the autoescape\n functionality. If there are two user-controlled parameters on the same \nline used in the views, it was possible to inject cross site scripting \npayloads using the backslash \\ character.","published":"2024-11-26T11:24:15.422Z","modified":"2026-08-12T03:51:29.588399651Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"nunjucks","fixedVersion":"3.2.4"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2142.json"},{"type":"ADVISORY","url":"https://github.com/mozilla/nunjucks/security/advisories/GHSA-x77j-w7wf-fjmw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2142"},{"type":"REPORT","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1825980"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:29.588399651Z"}}