# GHSA-CPX6-MPFQ-C6CR: UrlGenerator Can Still Generate URLs to Another Host: Incomplete Fix for CVE-2026-45065

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

## Tracked as

- [CVE-2026-133746](https://cve.now/CVE-2026-133746.md): Symfony Routing open redirect in UrlGenerator after incomplete fix

## Affected versions

- symfony/routing (Packagist): fixed in 5.4.57
- symfony/routing (Packagist): from 6, fixed in 6.4.51
- symfony/routing (Packagist): from 7, fixed in 7.4.24
- symfony/routing (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): fixed in 5.4.57
- symfony/symfony (Packagist): from 6, fixed in 6.4.51
- symfony/symfony (Packagist): from 7, fixed in 7.4.24
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### Description

The fix for CVE-2026-45065 (GHSA-72xp-p242-47p9) anchored the requirements that `UrlGenerator` checks parameter values against. That check doesn't run when `framework.router.strict_requirements` is `null`, which the routing recipe sets in the prod environment. There, a first placeholder whose value starts with `/` still gives a protocol-relative URL, as in the original report:

```
path('blog_rss', {_locale: '/evil.com'})  =>  //evil.com/blog/rss.xml
```

Requirements that accept `/`, like `.+`, give such URLs in every environment.

Applications are exposed when untrusted values reach these parameters, for example when they pass the query string of the request to `path()` or `url()`. A route that uses `RedirectController::redirectAction()` with `keepQueryParams: true` does the same, when the target route has a placeholder that the redirecting route doesn't define.

### Resolution

`UrlGenerator` now encodes the leading `//` of a URL that has no scheme and host as `/%2F`. It also rejects parameters that add `%2E` or `%2E%2E` segments to the path, which browsers resolve like `.` and `..`. These checks apply whatever `strict_requirements` is set to. When `strict_requirements` is `false` or `null`, the generator logs an error and returns an empty string instead of throwing.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/95dd139f821b0a5620034e1e7d1bd1d4db82c1e9) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### 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-cpx6-mpfq-c6cr

Page: https://cve.now/GHSA-CPX6-MPFQ-C6CR

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