VDB
CVE-2025-25977
CVE-2025-25977
PUBLISHED
CVSS 9.800000190734863 CRITICAL
canvg Prototype Pollution vulnerability
Reported by mitre · Published March 10, 2025
canvg is fixed in 4.0.3 and 3.0.11 (npm)
An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| canvg | npm | 4.0.3, 3.0.11 |
| opensearch-dashboards-2 | Chainguard | 2.19.1-r2 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| npm | canvg | 4.0.0, 0 |
| chainguard | opensearch-dashboards-2 | 0 |
| n/a | n/a | * |
| wolfi | opensearch-dashboards-2 | 0 |
| chainguard | opensearch-dashboards-2-fips | 0 |
Timeline
- Mar 10, 2025 CVE Published
- Mar 11, 2025 EPSS Score (30 in total, the first dated here)
- Mar 25, 2025 Coalition ESS Score (10 in total, the first dated here)
- Mar 9, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-25977
vulnetix vdb fixes CVE-2025-25977
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-25977/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-25977 advisory
- https://github.com/advisories/GHSA-v2mw-5mch-w8c5 advisory
- https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d patch
- https://github.com/canvg/canvg url
- https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts url