Loading...
Skip to main content

CVE-2025-25977 — Vulnerability in canvg — CVE Details

HIGH

canvg Prototype Pollution vulnerability

Published March 10, 2025Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published March 10, 2025 (581 days ago).
  • Last revised September 10, 2026 — 548 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update canvg to 4.0.3 or later
npm install canvg@4.0.3
npm
Update canvg to 3.0.11 or later
npm install canvg@3.0.11

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
canvg
npm
All versions4.0.3
canvg
npm
All versions3.0.11

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-1321
    Prototype PollutionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-25977?
canvg Prototype Pollution vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2025-25977?
CVE-2025-25977 affects canvg. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-25977 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-v2mw-5mch-w8c5

Related CVEs

  • CVE-2026-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies