Skip to content
Heist/ feed
Back to feed
Medium

libxml streams use wrong content-type header when requesting a redirected resource

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-1219
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 00:59 UTC · Revision 1

Source evidence

libxml streams use wrong content-type header when requesting a redirected resource

core-osv · Original source

Published 30 Mar 2025, 05:33 UTC

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.

osv:CVE-2025-1219
Complete source record
{
  "id": "cd95a5da86f9db2950eb9f44e7d7a13deb848034ff9411a501a7d10e546e0e8e",
  "url": "https://osv.dev/vulnerability/CVE-2025-1219",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "libxml streams use wrong content-type header when requesting a redirected resource",
    "summary": "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.",
    "evidence": "osv:CVE-2025-1219",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-1219",
      "aliases": [
        "BIT-libphp-2025-1219",
        "BIT-php-2025-1219",
        "BIT-php-min-2025-1219",
        "CVE-2025-1219",
        "GHSA-p3x9-6h7p-cgfc"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"
                },
                {
                  "fixed": "aa4bed90d8927de8c2648ea5f3f4a32c56301b71"
                },
                {
                  "introduced": "70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"
                },
                {
                  "fixed": "997ec633e4d024e50315e722c89733f77a2248f8"
                },
                {
                  "introduced": "d26068059e83fe40de3430a512471d194119bee0"
                },
                {
                  "fixed": "fdeadcd9ba0627cf1967220489ab6caa031e4034"
                },
                {
                  "introduced": "b437f2b32eb364c9496d24abcc734272e5c9c980"
                },
                {
                  "fixed": "23e05bdcf23319f4922513a91bb0d5e3925d5249"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.1.0"
                      },
                      {
                        "fixed": "8.1.32"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.2.0"
                      },
                      {
                        "fixed": "8.2.28"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.3.0"
                      },
                      {
                        "fixed": "8.3.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.4.0"
                      },
                      {
                        "fixed": "8.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1219.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.352223141Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1219.json",
        "https://github.com/php/php-src/security/advisories/GHSA-p3x9-6h7p-cgfc",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1219",
        "https://security.netapp.com/advisory/ntap-20250523-0007/"
      ],
      "provider_metadata": {
        "cna_assigner": "php",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1219.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1219",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521154,
  "published_at": "2025-03-30T05:33:13.801+00:00"
}