{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-2142","id":"CVE-2023-2142","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.","descriptionLong":"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","updated":"2026-10-28T02:30:26.376395727Z","reserved":"2023-04-18T08:19:20.097Z","status":"Analyzed","rejected":false,"assigner":"mozilla","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Mozilla Nunjucks"],"affectedProducts":[{"vendor":"Mozilla","product":"Nunjucks","defaultStatus":"unknown","versions":[{"lessThan":"3.2.4","status":"affected","version":"0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"nunjucks","purl":"pkg:npm/nunjucks","ranges":["<3.2.4"],"fixed":["3.2.4"],"advisory":"GHSA-x77j-w7wf-fjmw"}],"cwes":["CWE-79"],"aliases":["GHSA-x77j-w7wf-fjmw"],"references":[{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1825980","tags":["issue-tracking","Issue Tracking","Permissions Required","report","web"]},{"url":"https://github.com/mozilla/nunjucks/security/advisories/GHSA-x77j-w7wf-fjmw","tags":["vendor-advisory","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2142.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2142","tags":["advisory"]},{"url":"https://github.com/mozilla/nunjucks/pull/1437","tags":["web"]},{"url":"https://github.com/mozilla/nunjucks/commit/ec16d210e7e13f862eccdb0bc9af9f60ff6749d6","tags":["web"]},{"url":"https://github.com/mozilla/nunjucks","tags":["package"]},{"url":"https://github.com/mozilla/nunjucks/releases/tag/v3.2.4","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00386,"epssPercentile":0.33278,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-2142","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2142","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-2142","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x77j-w7wf-fjmw","ok":true,"note":"GHSA-x77j-w7wf-fjmw"},{"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-2023-2142","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}