VDB
Sign up
MEDIUM6.1

GHSA-7px7-7xjx-hxm8

Marked vulnerable to XSS from data URIs

Quick fix

GHSA-7px7-7xjx-hxm8 — marked: upgrade to the fixed version with the command below.

npm install marked@0.3.7

Details

marked version 0.3.6 and earlier is vulnerable to an XSS attack in the data: URI parser.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/marked
Introduced in: 0Fixed in: 0.3.7
Fixnpm install marked@0.3.7

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/marked"]}'