CVE-2023-2142

Source
https://cve.org/CVERecord?id=CVE-2023-2142
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2142.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-2142
Aliases
Downstream
Published
2024-11-26T11:24:15.422Z
Modified
2026-07-15T01:49:09.790711168Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Nunjucks autoescape bypass leads to cross site scripting
Details

In Nunjucks versions prior to version 3.2.4, it was possible to bypass the restrictions which are provided by the autoescape functionality. If there are two user-controlled parameters on the same line used in the views, it was possible to inject cross site scripting payloads using the backslash \ character.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2142.json",
    "cna_assigner": "mozilla"
}
References

Affected packages

Git / github.com/mozilla/nunjucks

Affected ranges

Type
GIT
Repo
https://github.com/mozilla/nunjucks
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.2.4"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Affected versions

v.*
v.1.3.1
v0.*
v0.1.0
v0.1.1
v0.1.2
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v1.*
v1.0.0
v1.0.1
v1.0.2
v1.0.4
v1.0.5
v1.0.7
v1.1.0
v1.2.0
v1.3.0
v1.3.2
v1.3.3
v2.*
v2.0.0
v2.1.0
v2.2.0
v3.*
v3.0.0
v3.0.1
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v3.1.6
v3.1.7
v3.2.0
v3.2.1
v3.2.2
v3.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2142.json"