Advisory

GHSA-v2mw-5mch-w8c5

Also known as: CVE-2025-25977

Summary

canvg Prototype Pollution vulnerability

Details

An issue in canvg prior to v.4.0.3 and v3.0.11 can lead to prototype pollution via the Constructor of the class StyleElement.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-10 18:31 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

canvg

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.0.3 (semver)

Fixed versions

4.0.3

Fix

canvg

npm · All systems

Affected

  • introduced 0, fixed 3.0.11 (semver)

Fixed versions

3.0.11

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences