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://github.com/matt-/nunjucks_test
https://github.com/mozilla/nunjucks/issues/835
https://nodesecurity.io/advisories/147
Related Vulnerabilities
CVE-2022-36944 Vulnerability in maven package org.scala-lang:scala-library
CVE-2021-32820 Vulnerability in npm package express-handlebars
CVE-2018-17420 Vulnerability in maven package com.zrlog:zrlog
CVE-2023-31890 Vulnerability in maven package com.glazedlists:glazedlists
CVE-2020-7760 Vulnerability in maven package org.webjars.bowergithub.codemirror:codemirror