ghsa-f7ph-p5rv-phw2
Vulnerability from github
Published
2018-11-06 23:13
Modified
2020-08-31 18:12
VLAI Severity ?
Summary
Cross-Site Scripting in nunjucks
Details
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.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "nunjucks"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2016-10547"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:34:04Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "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.\n\n## Proof of Concept\n\nBy using an array for the keys in a template var, escaping is bypassed.\n```javascript\nname[]=\u003cscript\u003ealert(1)\u003c/script\u003e\n```\n\nA full PoC is available in the references section.\n\n\n## Recommendation\n\nUpdate to version 2.4.3 or later.",
"id": "GHSA-f7ph-p5rv-phw2",
"modified": "2020-08-31T18:12:27Z",
"published": "2018-11-06T23:13:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10547"
},
{
"type": "WEB",
"url": "https://github.com/mozilla/nunjucks/issues/835"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-f7ph-p5rv-phw2"
},
{
"type": "WEB",
"url": "https://github.com/matt-/nunjucks_test"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/147"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Cross-Site Scripting in nunjucks"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…