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.

  • CVSS V3 rated as High - 6.1 severity.
  • CVSS V2 rated as Medium - 4.3 severity.
  • Solution
    Customers are advised to refer to GHSA-f7ph-p5rv-phw2 for updates pertaining to this vulnerability.
    Vendor References

    CVEs related to QID 983949

    Software Advisories
    Advisory ID Software Component Link
    GHSA-f7ph-p5rv-phw2 nunjucks URL Logo github.com/advisories/GHSA-f7ph-p5rv-phw2