Skip to main content
← All vulnerabilities
CVE-2023-2142GHSA-X77J-W7WF-FJMW

Nunjucks autoescape bypass leads to cross site scripting

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Mozilla Nunjucks

    fixed in 3.2.4

  • nunjucksnpm

    fixed in 3.2.4

References 2

bugzilla.mozilla.org

GitHub · mozilla/nunjucks