GitHub Advisoryadvisory · npm

GHSA-v2mw-5mch-w8c5 canvg Prototype Pollution vulnerability

HIGH Published 2025-03-10 Modified 2025-03-17 Official page ↗
Aliases
CVE-2025-25977
Ecosystem
npm
Packages
canvg
Severity
High
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Weaknesses
CWE-1321
Reviewed
2025-03-12

Affected packages

• npm canvg: >= 4.0.0, < 4.0.3 → fixed in 4.0.3 • npm canvg: < 3.0.11 → fixed in 3.0.11

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-25977 An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement. vulnerability

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References