{"id":"CVE-2023-2142","published":"2024-11-26T11:24:15Z","modified":"2024-11-27T16:19:44Z","title":"Nunjucks autoescape bypass leads to cross site scripting","vendor":"Mozilla","product":"Nunjucks","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00386,"percentile":0.33512,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1825980","tags":["issue-tracking"]},{"url":"https://github.com/mozilla/nunjucks/security/advisories/GHSA-x77j-w7wf-fjmw","tags":["vendor-advisory"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":6.7},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"mozilla","affectedVersions":[{"vendor":"Mozilla","product":"Nunjucks","versions":["< 3.2.4"]}],"capec":[{"id":"CAPEC-63","name":"Cross-Site Scripting (XSS)"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-27T16:17:55.829952Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"nunjucks","vulnerableRanges":["<3.2.4"],"patched":["3.2.4"],"from":["GHSA-x77j-w7wf-fjmw"],"provenance":"source"}],"summary":{"text":"The flaw is an autoescape bypass in the Nunjucks templating engine from Mozilla, which affects versions prior to 3.2.4. When two user-controlled parameters appear on the same line of a view template, the autoescaping protection can be circumvented using the backslash character, allowing cross-site scripting payloads to be injected. An attacker can inject script into a page over the network without authentication, but the attack requires a victim to interact with the crafted content, and the flaw only arises when the template layout places two user-controlled parameters on the same line.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:54Z"},"euvd":{"id":"EUVD-2023-1422","exploited":false,"provenance":"source"}}