Description
Nunjucks is a full featured templating engine for JavaScript. Versions 2.4.2 and lower have a cross site scripting (XSS) vulnerability in autoescape mode. In autoescape mode, all template vars should automatically be escaped. By using an array for the keys, such as `name[]=`, it is possible to bypass autoescaping and inject content into the DOM.
Remediation
References
https://nodesecurity.io/advisories/147
https://github.com/mozilla/nunjucks/issues/835
https://github.com/matt-/nunjucks_test
Related Vulnerabilities
CVE-2023-37964 Vulnerability in maven package org.jenkins-ci.plugins:elasticbox
CVE-2020-7748 Vulnerability in npm package @tsed/core
CVE-2022-24785 Vulnerability in maven package org.fujion.webjars:moment
CVE-2021-25914 Vulnerability in npm package object-collider
CVE-2023-46499 Vulnerability in npm package @evershop/evershop