Security mailing lists by PureSourceCode

CVE-2023-2142

MEDIUM 6.1CVSS 3.1

Nunjucks autoescape bypass leads to cross site scripting

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.

Published
26 Nov 2024
Last modified
17 Jun 2026
Assigned by
security@mozilla.org
NVD status
Analyzed
Weakness
CWE-79
Also known as
GHSA-x77j-w7wf-fjmw
Sources
NVDJSONOSV GHSA-x77j-w7wf-fjmwJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mozilla nunjucks
cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:*
< 3.2.4 3.2.4
OSV npm nunjucks < 3.2.4 3.2.4

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 26 Nov 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Apr 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.