CVE-2026-129501: PHP Group PHP

Medium severity, CVSS 6.3. EPSS: 0.7% probability of exploitation activity in the next 30 days.

Double free during DOM XML serialization. The XML serializer of Dom\XMLDocument and Dom\HTMLDocument can share ownership of a generated namespace prefix between the namespace-prefix maps of an element and a descendant, so the prefix is used after being freed and then freed a second time. The document does not need to be malformed. An application that parses attacker-controlled XML or HTML with these classes and serializes it with saveXml() can be crashed, and repeated requests can cause denial of service. Code execution has not been demonstrated. This issue affects PHP versions 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • PHP Group PHP, from 8.4.0, before 8.4.28: fixed in 8.4.28
  • PHP Group PHP, from 8.5.0, before 8.5.13: fixed in 8.5.13

Affected products

  • PHP Group PHP: from 8.4.0, before 8.4.28 (fixed in 8.4.28); from 8.5.0, before 8.5.13 (fixed in 8.5.13)

Published 2026-11-19. Last modified 2026-11-19.