{"id":"CVE-2023-2142","state":"PUBLISHED","title":"Nunjucks autoescape bypass leads to cross site scripting","description":"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.","publishedAt":"2024-11-26T11:24:15.422Z","updatedAt":"2024-11-27T16:19:44.548Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"mozilla","products":["Mozilla Nunjucks"],"affected":[{"vendor":"Mozilla","product":"Nunjucks","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.2.4","versionType":"semver"}]}],"references":["https://bugzilla.mozilla.org/show_bug.cgi?id=1825980","https://github.com/mozilla/nunjucks/security/advisories/GHSA-x77j-w7wf-fjmw"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/2xxx/CVE-2023-2142.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-2142","state":"PUBLISHED","datePublished":"2024-11-26T11:24:15.422Z","dateUpdated":"2024-11-27T16:19:44.548Z","assignerShortName":"mozilla","assignerOrgId":"f16b083a-5664-49f3-a51e-8d479e5ed7fe","dateReserved":"2023-04-18T08:19:20.097Z"},"containers":{"cna":{"title":"Nunjucks autoescape bypass leads to cross site scripting","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Mozilla","product":"Nunjucks","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.2.4","versionType":"semver"}]}],"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"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mozilla","orgId":"f16b083a-5664-49f3-a51e-8d479e5ed7fe","dateUpdated":"2024-11-26T11:24:15.422Z"},"credits":[{"lang":"en","type":"finder","value":"blaiddx64"}],"impacts":[{"capecId":"CAPEC-63","descriptions":[{"lang":"en","value":"CAPEC-63 Cross-Site Scripting (XSS)"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mozilla","product":"nunjucks","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.2.4","versionType":"semver"}],"cpes":["cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":6.1,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-11-27T16:17:55.829952Z","id":"CVE-2023-2142","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-27T16:19:44.548Z"}}]}}}