QID 983949
QID 983949: Nodejs (npm) Security Update for nunjucks (GHSA-f7ph-p5rv-phw2)
Affected versions of `nunjucks` do not properly escape specially structured user input in template vars when in auto-escape mode, resulting in a cross-site scripting vulnerability. ## Proof of Concept By using an array for the keys in a template var, escaping is bypassed. ```javascript name[]=<SCRIPT>alert(1)</SCRIPT> ``` A full PoC is available in the references section. ## Recommendation Update to version 2.4.3 or later.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-f7ph-p5rv-phw2 for updates pertaining to this vulnerability.
Vendor References
- GHSA-f7ph-p5rv-phw2 -
github.com/advisories/GHSA-f7ph-p5rv-phw2
CVEs related to QID 983949
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-f7ph-p5rv-phw2 | nunjucks |
|