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-2020-11023 Vulnerability in maven package org.webjars.npm:jquery
CVE-2021-43861 Vulnerability in npm package mermaid
CVE-2019-5444 Vulnerability in npm package serve-here.js
CVE-2021-31811 Vulnerability in maven package org.apache.pdfbox:pdfbox
CVE-2022-24847 Vulnerability in maven package org.geoserver.community:gs-taskmanager-core