Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. canvg
  4. ›
  5. CVE-2025-25977

CVE-2025-25977: canvg Prototype Pollution vulnerability

March 10, 2025 (updated March 17, 2025)

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.

References

  • github.com/advisories/GHSA-v2mw-5mch-w8c5
  • github.com/canvg/canvg
  • github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts
  • github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d
  • github.com/canvg/canvg/issues/1749
  • nvd.nist.gov/vuln/detail/CVE-2025-25977

Code Behaviors & Features

Detect and mitigate CVE-2025-25977 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.11, all versions starting from 4.0.0 before 4.0.3

Fixed versions

  • 4.0.3
  • 3.0.11

Solution

Upgrade to versions 3.0.11, 4.0.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/canvg/CVE-2025-25977.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:48 +0000.