CVE-2023-2142

Source
https://nvd.nist.gov/vuln/detail/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-26T12:15:18.307Z
Modified
2025-11-20T12:12:53.940228Z
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
[none]
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.

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

Affected versions

1.*

1.3.4

v.*

v.1.3.1

v0.*

v0.1.0
v0.1.1
v0.1.10
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.6
v1.0.7
v1.1.0
v1.2.0
v1.3.0
v1.3.2
v1.3.3
v1.3.4

v2.*

v2.0.0
v2.1.0
v2.2.0
v2.3.0
v2.4.0
v2.4.1
v2.4.2

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