Search
Find a vulnerability
Search criteria
2 vulnerabilities found for symfony/http-kernel by Symfony
CVE-2026-133743 (GCVE-0-2026-133743)
Vulnerability from nvd – Published: 2026-11-25 09:59 – Updated: 2026-11-25 09:59
VLAI
EPSS
VEX
Title
Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute_url(): Incomplete Fix for CVE-2026-123339
Summary
The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1.
Symfony itself reads the main request there:
- asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset('build/app.js') returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it's first computed inside the fragment, the later asset() calls of the page return such URLs too.
- absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto.
When a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker.
This affects applications reached over HTTP from 127.0.0.1 when that address isn't a trusted proxy. That's the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn't help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there.
SubRequestHandler doesn't change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.
symfony/http-kernel now requires the version of symfony/http-foundation that contains this fix.
Severity
CWE
- CWE-348 - Use of Less Trusted Source
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133743 | vendor-advisory |
| https://github.com/symfony/symfony/security/advis… | vendor-advisory |
| https://github.com/symfony/symfony/commit/2bba2bd… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Symfony | symfony/http-kernel |
Affected:
0 , < 5.4.57
(semver)
Affected: 6.0.0 , < 6.4.51 (semver) Affected: 7.0.0 , < 7.4.24 (semver) Affected: 8.0.0 , < 8.1.12 (semver) |
|
| Symfony | symfony/symfony |
Affected:
0 , < 5.4.57
(semver)
Affected: 6.0.0 , < 6.4.51 (semver) Affected: 7.0.0 , < 7.4.24 (semver) Affected: 8.0.0 , < 8.1.12 (semver) |
Date Public
2026-11-25 09:35
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "symfony/http-kernel",
"product": "symfony/http-kernel",
"repo": "https://github.com/symfony/symfony",
"vendor": "Symfony",
"versions": [
{
"lessThan": "5.4.57",
"status": "affected",
"version": "0",
"versionType": "semver"
},
{
"lessThan": "6.4.51",
"status": "affected",
"version": "6.0.0",
"versionType": "semver"
},
{
"lessThan": "7.4.24",
"status": "affected",
"version": "7.0.0",
"versionType": "semver"
},
{
"lessThan": "8.1.12",
"status": "affected",
"version": "8.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "symfony/symfony",
"product": "symfony/symfony",
"repo": "https://github.com/symfony/symfony",
"vendor": "Symfony",
"versions": [
{
"lessThan": "5.4.57",
"status": "affected",
"version": "0",
"versionType": "semver"
},
{
"lessThan": "6.4.51",
"status": "affected",
"version": "6.0.0",
"versionType": "semver"
},
{
"lessThan": "7.4.24",
"status": "affected",
"version": "7.0.0",
"versionType": "semver"
},
{
"lessThan": "8.1.12",
"status": "affected",
"version": "8.0.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "remediation developer",
"value": "Nicolas Grekas"
},
{
"lang": "en",
"type": "finder",
"value": "Vincent Cassiau (CyberVanguard)"
},
{
"lang": "en",
"type": "finder",
"value": "Amimul Ihsan"
}
],
"datePublic": "2026-11-25T09:35:38.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with `render()` in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, `SubRequestHandler` adds `127.0.0.1` to the trusted proxies of every request. Code that reads the main request during that time trusts its `X-Forwarded-*` and `Forwarded` headers if the main request came from `127.0.0.1`.\n\nSymfony itself reads the main request there:\n\n- `asset()` takes the base path and the scheme of the main request. With `X-Forwarded-Prefix: //evil.example`, `asset(\u0027build/app.js\u0027)` returns `//evil.example/build/app.js`, a script loaded from another host. `Request::getBasePath()` keeps its first result, so when it\u0027s first computed inside the fragment, the later `asset()` calls of the page return such URLs too.\n- `absolute_url()` in Twig, through `UrlHelper`, takes the host and the scheme of the main request from `X-Forwarded-Host` and `X-Forwarded-Proto`.\n\nWhen a shared cache stores the page, every visitor gets these URLs. With `asset()`, the page then runs scripts from a host chosen by the attacker.\n\nThis affects applications reached over HTTP from `127.0.0.1` when that address isn\u0027t a trusted proxy. That\u0027s the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When `framework.trusted_proxies` is not configured, which is the default, every forwarded header is trusted during that window, `X-Forwarded-Prefix` included. Configuring `framework.trusted_hosts` doesn\u0027t help with `asset()`, since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. `REMOTE_ADDR` is not `127.0.0.1` there.\n\n`SubRequestHandler` doesn\u0027t change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust `127.0.0.1`. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.\n\n`symfony/http-kernel` now requires the version of `symfony/http-foundation` that contains this fix."
}
],
"value": "The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1.\n\nSymfony itself reads the main request there:\n- asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset(\u0027build/app.js\u0027) returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it\u0027s first computed inside the fragment, the later asset() calls of the page return such URLs too.\n- absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto.\n\nWhen a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker.\n\nThis affects applications reached over HTTP from 127.0.0.1 when that address isn\u0027t a trusted proxy. That\u0027s the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn\u0027t help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there.\n\nSubRequestHandler doesn\u0027t change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.\n\nsymfony/http-kernel now requires the version of symfony/http-foundation that contains this fix."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 7,
"baseSeverity": "HIGH",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-348",
"description": "CWE-348 Use of Less Trusted Source",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-25T09:59:54.209Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133743",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133743"
},
{
"name": "GHSA-8cww-v5fg-2mf9",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9"
},
{
"tags": [
"patch"
],
"url": "https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4"
}
],
"source": {
"advisory": "GHSA-8cww-v5fg-2mf9",
"discovery": "UNKNOWN"
},
"title": "Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute_url(): Incomplete Fix for CVE-2026-123339",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133743",
"datePublished": "2026-11-25T09:59:54.209Z",
"dateReserved": "2026-11-20T14:01:43.157Z",
"dateUpdated": "2026-11-25T09:59:54.209Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133743 (GCVE-0-2026-133743)
Vulnerability from cvelistv5 – Published: 2026-11-25 09:59 – Updated: 2026-11-25 09:59
VLAI
EPSS
VEX
Title
Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute_url(): Incomplete Fix for CVE-2026-123339
Summary
The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1.
Symfony itself reads the main request there:
- asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset('build/app.js') returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it's first computed inside the fragment, the later asset() calls of the page return such URLs too.
- absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto.
When a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker.
This affects applications reached over HTTP from 127.0.0.1 when that address isn't a trusted proxy. That's the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn't help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there.
SubRequestHandler doesn't change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.
symfony/http-kernel now requires the version of symfony/http-foundation that contains this fix.
Severity
CWE
- CWE-348 - Use of Less Trusted Source
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133743 | vendor-advisory |
| https://github.com/symfony/symfony/security/advis… | vendor-advisory |
| https://github.com/symfony/symfony/commit/2bba2bd… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Symfony | symfony/http-kernel |
Affected:
0 , < 5.4.57
(semver)
Affected: 6.0.0 , < 6.4.51 (semver) Affected: 7.0.0 , < 7.4.24 (semver) Affected: 8.0.0 , < 8.1.12 (semver) |
|
| Symfony | symfony/symfony |
Affected:
0 , < 5.4.57
(semver)
Affected: 6.0.0 , < 6.4.51 (semver) Affected: 7.0.0 , < 7.4.24 (semver) Affected: 8.0.0 , < 8.1.12 (semver) |
Date Public
2026-11-25 09:35
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "symfony/http-kernel",
"product": "symfony/http-kernel",
"repo": "https://github.com/symfony/symfony",
"vendor": "Symfony",
"versions": [
{
"lessThan": "5.4.57",
"status": "affected",
"version": "0",
"versionType": "semver"
},
{
"lessThan": "6.4.51",
"status": "affected",
"version": "6.0.0",
"versionType": "semver"
},
{
"lessThan": "7.4.24",
"status": "affected",
"version": "7.0.0",
"versionType": "semver"
},
{
"lessThan": "8.1.12",
"status": "affected",
"version": "8.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "symfony/symfony",
"product": "symfony/symfony",
"repo": "https://github.com/symfony/symfony",
"vendor": "Symfony",
"versions": [
{
"lessThan": "5.4.57",
"status": "affected",
"version": "0",
"versionType": "semver"
},
{
"lessThan": "6.4.51",
"status": "affected",
"version": "6.0.0",
"versionType": "semver"
},
{
"lessThan": "7.4.24",
"status": "affected",
"version": "7.0.0",
"versionType": "semver"
},
{
"lessThan": "8.1.12",
"status": "affected",
"version": "8.0.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "remediation developer",
"value": "Nicolas Grekas"
},
{
"lang": "en",
"type": "finder",
"value": "Vincent Cassiau (CyberVanguard)"
},
{
"lang": "en",
"type": "finder",
"value": "Amimul Ihsan"
}
],
"datePublic": "2026-11-25T09:35:38.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with `render()` in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, `SubRequestHandler` adds `127.0.0.1` to the trusted proxies of every request. Code that reads the main request during that time trusts its `X-Forwarded-*` and `Forwarded` headers if the main request came from `127.0.0.1`.\n\nSymfony itself reads the main request there:\n\n- `asset()` takes the base path and the scheme of the main request. With `X-Forwarded-Prefix: //evil.example`, `asset(\u0027build/app.js\u0027)` returns `//evil.example/build/app.js`, a script loaded from another host. `Request::getBasePath()` keeps its first result, so when it\u0027s first computed inside the fragment, the later `asset()` calls of the page return such URLs too.\n- `absolute_url()` in Twig, through `UrlHelper`, takes the host and the scheme of the main request from `X-Forwarded-Host` and `X-Forwarded-Proto`.\n\nWhen a shared cache stores the page, every visitor gets these URLs. With `asset()`, the page then runs scripts from a host chosen by the attacker.\n\nThis affects applications reached over HTTP from `127.0.0.1` when that address isn\u0027t a trusted proxy. That\u0027s the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When `framework.trusted_proxies` is not configured, which is the default, every forwarded header is trusted during that window, `X-Forwarded-Prefix` included. Configuring `framework.trusted_hosts` doesn\u0027t help with `asset()`, since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. `REMOTE_ADDR` is not `127.0.0.1` there.\n\n`SubRequestHandler` doesn\u0027t change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust `127.0.0.1`. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.\n\n`symfony/http-kernel` now requires the version of `symfony/http-foundation` that contains this fix."
}
],
"value": "The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1.\n\nSymfony itself reads the main request there:\n- asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset(\u0027build/app.js\u0027) returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it\u0027s first computed inside the fragment, the later asset() calls of the page return such URLs too.\n- absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto.\n\nWhen a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker.\n\nThis affects applications reached over HTTP from 127.0.0.1 when that address isn\u0027t a trusted proxy. That\u0027s the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn\u0027t help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there.\n\nSubRequestHandler doesn\u0027t change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.\n\nsymfony/http-kernel now requires the version of symfony/http-foundation that contains this fix."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 7,
"baseSeverity": "HIGH",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-348",
"description": "CWE-348 Use of Less Trusted Source",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-25T09:59:54.209Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133743",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133743"
},
{
"name": "GHSA-8cww-v5fg-2mf9",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9"
},
{
"tags": [
"patch"
],
"url": "https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4"
}
],
"source": {
"advisory": "GHSA-8cww-v5fg-2mf9",
"discovery": "UNKNOWN"
},
"title": "Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute_url(): Incomplete Fix for CVE-2026-123339",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133743",
"datePublished": "2026-11-25T09:59:54.209Z",
"dateReserved": "2026-11-20T14:01:43.157Z",
"dateUpdated": "2026-11-25T09:59:54.209Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}