[php-src] PR #21500: Fix GH-21496: UAF in dom_objects_free_storage.

From: Date: Mon, 23 Mar 2026 07:43:47 +0000
Subject: [php-src] PR #21500: Fix GH-21496: UAF in dom_objects_free_storage.
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35312@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21500 Author: devnexen Cloning a non-document DOM node creates a copy within the same xmlDoc. importStylesheet then passes that original document to xsltParseStylesheetDoc, which strips and frees nodes (including comment nodes) during processing, invalidating PHP objects still referencing them. Validate that the imported node is a document node before proceeding with the clone.

« previous php.git-pulls (#35312) next »