Skip to content
PHP News
Search
medium PHP Reported Not reviewed by PHP News yet

Double free during DOM XML serialization

Are you affected?

If you run one of these versions, yes. The sources say whether your app is exposed.

Your app runs PHP below 8.5.13 on 8.5.x, or below 8.4.28 on 8.4.x.

Fix it

Update PHP to the release for the branch you run, wherever it's installed: your Docker image, server packages or hosting panel.

If you run 8.5.0 – 8.5.12 Update to PHP 8.5.13
If you run 8.4.0 – 8.4.27 Update to PHP 8.4.28

Not sure? Check your app with an agent

Paste this into a coding agent that can read your project, such as Claude Code, Codex or Amp. It finds the PHP versions your project runs on and checks them against the versions above, without changing anything.

Check whether the PHP project you have access to runs a PHP version affected by this security advisory in PHP itself, and tell me what to update. Do a read-only check: don't edit files, don't change any PHP install, and don't try to reproduce the flaw.

Advisory: Double free during DOM XML serialization (CVE-2026-129501, GHSA-x8r7-mg3g-74hg)
Details: https://phpnews.net/security/php/ghsa-x8r7-mg3g-74hg

Fixed releases on branches that still get security fixes:
- 8.5.0 – 8.5.12: update to 8.5.13
- 8.4.0 – 8.4.27: update to 8.4.28

Branches past end of life get no fix: any version on one of them should be treated as affected.

1. Find every place the project pins or installs PHP: Dockerfiles and compose files, CI workflows, deploy and provisioning scripts, platform config (.php-version, Forge, Vapor, Cloud or Herd settings), and composer.json's config.platform.php and require.php.
2. For each, read the PHP version it runs. Where only a branch is given (php:8.3, PHP 8.3), say the patch version depends on when the image or server was last updated.
3. Compare each version with the fixed releases above.
4. Read the advisory and say whether the project uses what it describes (a function, extension or SAPI). Say which you could check and which you couldn't.
5. Report a table: file | PHP version | affected (yes, no or unknown) | uses the affected feature (yes, no or unknown) | update to | evidence.

Check whether the PHP project you have access to runs a PHP version affected by this security advisory in PHP itself, and tell me what to update. Do a read-only check: don't edit files, don't change any PHP install, and don't try to reproduce the flaw.

← All PHP advisories