MediumGHSA-cfjh-p3g4-3q2fCVE-2015-1370

VBScript Content Injection in marked

Published 24 Oct 2017 · Updated 8 Nov 2023

Affected package

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.3

Details

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&#41;)

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.