MediumGHSA-cfjh-p3g4-3q2fCVE-2015-1370
VBScript Content Injection in marked
Published 24 Oct 2017 · Updated 8 Nov 2023
Affected package
markednpm
- Affected
- <0.3.3
- Fixed in
- 0.3.3
Update to the fixed version for your release line, for example:
npm install marked@0.3.3Details
Versions 0.3.2 and earlier of marked are affected by a cross-site scripting vulnerability even when sanitize:true is set.
Proof of Concept ( IE10 Compatibility Mode Only )
[xss link](vbscript:alert(1))
will get a link
<a href="vbscript:alert(1)">xss link</a>
Recommendation
Update to version 0.3.3 or later.
Is GHSA-cfjh-p3g4-3q2f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected marked, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-1370
- Linkgithub.com/chjj/marked/issues/492
- Linkgithub.com/markedjs/marked/issues/492
- Linkgithub.com/evilpacket/marked/commit/3c191144939107c45a7fa11ab6cb88be6694a1ba
- Linkgithub.com/markedjs/marked/commit/fc372d1c6293267722e33f2719d57cebd67b3da1
- Packagegithub.com/markedjs/marked
- Linkwww.npmjs.com/advisories/24
- Linkwww.npmjs.com/advisories/24/versions
- Linkwww.openwall.com/lists/oss-security/2015/01/23/2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.