# GHSA-4Q4P-2Q78-PHFX: NoPrivateNetworkHttpClient With Custom Subnets Lets IPv4-Mapped Addresses Through

- Database: GitHub
- Severity: CVSS 6.3 (Medium)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133748](https://cve.now/CVE-2026-133748.md): Symfony HTTP Foundation server-side request forgery in NoPrivateNetworkHttpClient

## Affected versions

- symfony/http-foundation (Packagist): fixed in 5.4.57
- symfony/http-foundation (Packagist): from 6, fixed in 6.4.50
- symfony/http-foundation (Packagist): from 7, fixed in 7.4.23
- symfony/http-foundation (Packagist): from 8, fixed in 8.1.11
- symfony/symfony (Packagist): fixed in 5.4.57
- symfony/symfony (Packagist): from 6, fixed in 6.4.50
- symfony/symfony (Packagist): from 7, fixed in 7.4.23
- symfony/symfony (Packagist): from 8, fixed in 8.1.11

## Description

### Description

`NoPrivateNetworkHttpClient` accepts a list of subnets to block instead of its default one. When that list contains an IPv6 entry, the client lets `IpUtils::checkIp()` decide for every address. Before Symfony 6.4.50, 7.4.23 and 8.1.11, `checkIp()` didn't match an IPv4-mapped address like `::ffff:127.0.0.1` against IPv4 subnets. Such an address connects to the IPv4 host it embeds. So `http://[::ffff:127.0.0.1]/`, or a host name whose AAAA record contains a mapped address, reaches a blocked IPv4 host:

```php
$client = new NoPrivateNetworkHttpClient(HttpClient::create(), ['10.0.0.0/8', '127.0.0.0/8', '192.168.0.0/16', 'fc00::/7', '::1/128']);
$client->request('GET', 'http://127.0.0.1/');          // blocked
$client->request('GET', 'http://[::ffff:127.0.0.1]/'); // sent to 127.0.0.1
```

The default list is not affected, since it contains `::ffff:0:0/96`.

### Resolution

`IpUtils::checkIp()` now checks an IPv4-mapped address against IPv4 subnets as the IPv4 host it embeds. Symfony 6.4.50, 7.4.23 and 8.1.11 already do so since the fix for GHSA-xg2q-4rrq-657q, and 5.4 now does too.

The fix is in symfony/http-foundation, so updating symfony/http-client alone isn't enough. On 5.4, trusted proxies and the `ips` of request matchers now also match IPv4-mapped addresses through IPv4 ranges, as on 6.4 and up. `NoPrivateNetworkHttpClient` also blocks IPv4-mapped addresses when its custom subnets have no IPv4 entry, since such lists block every IPv4 host.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/f529db3745bab2a657e38ec97982a0ae95f084c2) for branch 5.4.

### Credits

We would like to thank Nicolas Grekas for reporting the issue and providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-4q4p-2q78-phfx

Page: https://cve.now/GHSA-4Q4P-2Q78-PHFX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
