CVE intelligence and bounded remediation
CVE-2022-31109 — Getlaminas Laminas-Diactoros security vulnerability
laminas-diactoros is a PHP package containing implementations of the PSR-7 HTTP message interfaces and PSR-17 HTTP message factory interfaces. Applications that use Diactoros, and are either not behind a proxy, or can be accessed via untrusted proxies, can potentially have the host, protocol, and/or port of a `Laminas\Diactoros\Uri` instance associated with the incoming server request modified to reflect values from `X-Forwarded-*` headers. Such changes can potentially lead to XSS attacks (if a fully-qualified URL is used in links) and/or URL poisoning. Since the `X-Forwarded-*` headers do have valid use cases, particularly in clustered environments using a load balancer, the library offers mitigation measures only in the v2 releases, as doing otherwise would break these use cases immediately. Users of v2 releases from 2.11.1 can provide an additional argument to `Laminas\Diactoros\ServerRequestFactory::fromGlobals()` in the form of a `Laminas\Diactoros\RequestFilter\RequestFilterInterface` instance, including the shipped `Laminas\Diactoros\RequestFilter\NoOpRequestFilter` implementation which ignores the `X-Forwarded-*` headers. Starting in version 3.0, the library will reverse b…
- Severity
- High
- CVSS
- 7.2 (3.1)
- Published
- 2022-08-01
- CISA KEV
- Not currently listed
- Ecosystem
- software/application
- Weaknesses
- CWE-79, CWE-444
Affected products
- getlaminas / laminas-diactoros
Matched remediation archetype
HTTP request smuggling and message-boundary ambiguity
This catalog composition supplies bounded fallback guidance. Explicitly reviewed curated workflows load with the complete record below.
Check exposure
- Inventory every proxy, CDN, gateway, load balancer, service mesh, and application server hop on affected request paths.
- Compare documented parsing and normalization behavior for message length, transfer coding, duplicate headers, and protocol translation.
- Identify connection reuse and which downstream services trust headers added by intermediaries.
Remediate safely
- Update affected intermediaries and origin servers and align them on a single standards-compliant request framing policy.
- Reject ambiguous length, transfer-coding, duplicate, malformed, and unsupported framing before forwarding.
- Normalize or remove hop-by-hop and identity headers at one controlled boundary and add multi-hop regression tests.
Authoritative sources
Complete CVE record and remediation plan
The detailed catalog view below loads this exact record, its source evidence, and the full seven-phase agentic change plan.