VDB
Sign up
MEDIUM6.1

GHSA-4f6x-49g2-99fm

Cross-site Scripting in Mermaid

Quick fix

GHSA-4f6x-49g2-99fm — mermaid: upgrade to the fixed version with the command below.

npm install mermaid@8.11.0

Details

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/mermaid
Introduced in: 0Fixed in: 8.11.0
Fixnpm install mermaid@8.11.0

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/mermaid"]}'