# CVE-2026-134163: probe-image-size 7.4.0 ReDoS via SVG Doctype Prolog Parser

Source: https://aplosec.si/cve/CVE-2026-134163/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-134163

Medium 6.9 · Reported · Fixed in 7.5.0 · CWE-1333 · npm

# probe-image-size 7.4.0 ReDoS via SVG Doctype Prolog Parser

CVE-2026-134163 · published 2026-11-20

In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). A fixed release is listed.

## Summary

CVE-2026-134163 affects probe-image-size (npm) 7.4.0 before 7.5.0: a crafted SVG doctype prolog triggers catastrophic regex backtracking in svg_header.js and blocks the event loop (CWE-1333). Fixed in 7.5.0. CVSS 4.0 base score 6.9 (Medium), assigned by VulnCheck. Published 2026-11-20 by VulnCheck. Credit: Zachariah Mithani (AploSec).

probe-image-size 7.4.0 contains a regular expression denial of service vulnerability in lib/common/svg_header.js that allows remote unauthenticated attackers to block the event loop via crafted SVG doctypes. Attackers can supply SVGs with an unclosed internal subset followed by many ']' characters to trigger quadratic backtracking in probe.sync, probe(stream) or probe(url), causing repeated event loop stalls.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade probe-image-size to 7.5.0 or later. Releases in the affected range (7.4.0 before 7.5.0) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-11-20 CVE published

## References

- [Referencehttps://github.com/nodeca/probe-image-size/security/advisories/GHSA-5jh3-w3fj-6758](https://github.com/nodeca/probe-image-size/security/advisories/GHSA-5jh3-w3fj-6758)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/probe-image-size-7.4.0-redos-via-svg-doctype-prolog-parser](https://www.vulncheck.com/advisories/probe-image-size-7.4.0-redos-via-svg-doctype-prolog-parser)

- [Fix commithttps://github.com/nodeca/probe-image-size/commit/ca291344edea53df47432ca8dbd25e66b8ea8600](https://github.com/nodeca/probe-image-size/commit/ca291344edea53df47432ca8dbd25e66b8ea8600)

- [Vulnerable codehttps://github.com/nodeca/probe-image-size/blob/64565c3c8b4b69655426cdfce250e6a93455c9da/lib/common/svg_header.js#L30](https://github.com/nodeca/probe-image-size/blob/64565c3c8b4b69655426cdfce250e6a93455c9da/lib/common/svg_header.js#L30)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134163](https://www.cve.org/CVERecord?id=CVE-2026-134163)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134163](https://nvd.nist.gov/vuln/detail/CVE-2026-134163)

**Severity:** Medium 6.9 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-134163)

**Package:** probe-image-size

**Ecosystem:** npm

**Affected:** 7.4.0 before 7.5.0

**Fixed:** 7.5.0

**Weakness:** CWE-1333

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
