Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. guzzlehttp/guzzle-services
  4. ›
  5. CVE-2026-53723

CVE-2026-53723: guzzlehttp/guzzle-services' XML Request Serialization Vulnerable to XML Injection via CDATA Terminator

June 11, 2026 (updated June 12, 2026)

guzzlehttp/guzzle-services does not safely serialize scalar XML element values containing the CDATA terminator ]]>. The XML request serializer writes values containing <, >, or & with XMLWriter::writeCData($value). If attacker-controlled input contains ]]>, the CDATA section closes early and the remainder is interpreted as XML markup. This is an outgoing request-body integrity issue, not a response parsing issue. The attacker does not need to control the service description or schema.

Users are affected when all of the following are true:

  1. The application uses guzzlehttp/guzzle-services to serialize outgoing requests.
  2. A request parameter or additionalParameters schema uses location: xml.
  3. The value is serialized as XML element text, not an XML attribute.
  4. The value can contain attacker-controlled, user-controlled, tenant-controlled, or otherwise untrusted input.
  5. The value is not constrained by a safe enum, pattern, or custom filter that excludes ]]>.
  6. The downstream service parses the generated XML structurally and may act on unexpected, duplicated, or injected elements.

Applications that serialize untrusted input into location: xml request parameters can emit XML containing attacker-controlled elements outside the intended text node. Depending on the receiving service, this can alter operation semantics, smuggle privileged fields, bypass modeled parameter boundaries, or create conflicting duplicated elements. Fixed service descriptions are sufficient if they contain an XML element parameter populated from attacker-controlled input.

Users are not directly affected if they only use Guzzle Services to deserialize HTTP response bodies. Response XML parsing uses the response XML location visitor and does not invoke the vulnerable request XML serializer. Response bodies matter only in a second-order flow, such as parsing attacker-controlled response XML, storing or forwarding a parsed string value, and later using it as a location: xml request parameter.

Example fixed service description:

'DisplayName' => ['location' => 'xml', 'type' => 'string']

If an attacker-controlled display name is:

Alice]]></DisplayName><Role>admin</Role><DisplayName><![CDATA[

the vulnerable serializer can emit an injected element outside the intended DisplayName text node:

<Request><DisplayName><![CDATA[Alice]]></DisplayName><Role>admin</Role><DisplayName><![CDATA[]]></DisplayName></Request>

If the downstream service treats <Role> as meaningful, the attacker has set a field the modeled DisplayName parameter was not intended to set.

References

  • github.com/advisories/GHSA-q8r6-5hfw-5jff
  • github.com/guzzle/guzzle-services/security/advisories/GHSA-q8r6-5hfw-5jff
  • nvd.nist.gov/vuln/detail/CVE-2026-53723

Code Behaviors & Features

Detect and mitigate CVE-2026-53723 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.4

Fixed versions

  • 1.5.4

Solution

Upgrade to version 1.5.4 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-91: XML Injection (aka Blind XPath Injection)

Source file

packagist/guzzlehttp/guzzle-services/CVE-2026-53723.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:59 +0000.