Description
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.
Recommendation
Update the nunjucks package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.2.4
- Patched version(s): 3.2.4
References
Could your website be exposed too?
SmartScanner can check your website for Nunjucks autoescape bypass leads to cross site scripting and gives you actionable findings to investigate.
Start a free scanRelated Issues
- @excalidraw/excalidraw Cross-site Scripting vulnerability - CVE-2023-26140
- Cross-Site Scripting in nunjucks - CVE-2016-10547
- TinyMCE Cross-Site Scripting (XSS) vulnerability using sanitization bypass through nested SVGs - CVE-2026-47760
- Jellyfin Web Cross-Site Scripting (XSS) via Playlist Name - CVE-2023-23636


