{"vuln_id":"GHSA-4jhr-8w89-j733","aliases":["CVE-2026-7263"],"description":"DoS attack via DOMNode::C14N()","published_at":"2026-05-07T12:54:39Z","modified_at":"2026-05-07T14:31:30Z","first_seen_at":"2026-11-22T14:05:37.604773Z","severity":"high","severity_source":"ghsa","cvss_score":8.2,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","cwe":["CWE-404"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-4jhr-8w89-j733"},"matched_alias":null,"items":[{"id":12638,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-4jhr-8w89-j733 / CVE-2026-7263: DoS attack via DOMNode::C14N()","summary":"DoS attack via DOMNode::C14N() **Researcher: Nikita Sveshnikov (Positive Technologies)** In `DOMNode::C14N()`, improper removal of a `xmlns` libxml2 attribute from a doubly linked list can lead to a corrupt, circular linked list. The linked list is iterated in many places in PHP and libxml2, leading to DoS through segfaults, or temporal and spatial resource starvation. ```php $doc = Dom\\HTMLDocument::createFromString(''); $doc->C14N(); // Segfault on cleanup // Or $doc = Dom\\HTMLDocument::createFromString(''); $doc->C14N(); $svg = $doc->documentElement->childNodes[1]->childNodes[0]; foreach ($svg->attributes as $prop) {} // This will loop forever ``` The attribute is removed incorrectly here: https://github.com/php/php-src/blob/f0f28b763c8696511c3b80fb8b25ae8765b2d94b/ext/dom/node.c#L2134-L2141 Notice the `attr->prev = attr->next;` instead of `attr->prev->next = attr->next;`. The attribute is later (correctly) restored here: https://github.com/php/php-src/blob/f0f28b763c8696511c3b80fb8b25ae8765b2d94b/ext/dom/node.c#L2182-L2189 After both procedures, the following graph: ```mermaid flowchart TD A -- \"Next\" --> xmlns xmlns -- \"Prev\" --> A xmlns -- \"Next\" --> B B -- \"Prev\" --> xmlns ``` Would result in this graph: ```mermaid flowchart TD A -- \"Next\" --> xmlns xmlns -- \"Prev\" --> B xmlns -- \"Next\" --> B B -- \"Prev\" --> xmlns B -- \"Next\" --> xmlns ``` Continuously following `next` will result in an infinite loop. Affected packages: php:ext-dom Patched: ext-dom 8.4.21, ext-dom 8.5.6","url":"https://github.com/php/php-src/security/advisories/GHSA-4jhr-8w89-j733","published_at":"2026-05-07T12:54:39Z","updated_at":"2026-05-07T14:31:30Z","fetched_at":"2026-11-22T14:05:37.431180Z","severity":"high","cvss_score":8.2,"epss":0.00353,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-dom","vuln_id":"CVE-2026-7263","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","GHSA-4JHR-8W89-J733"],"tags":["repo-advisory","php","CWE-404","security","repo:php/php-src","stack"],"cluster_id":11747,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12638","html":"https://vulnwatch.ve1ve2.com/item/12638"}}]}