CVE-2017-16653 · mitre
CVE-2017-16653
An issue was discovered in Symfony before 2.7.38, 2.8.31, 3.2.14, 3.3.13, 3.4-BETA5, and 4.0-BETA5. The current implementation of CSRF protection in Symfony (Version >=2) does not use different tokens for HTTP and HTTPS; therefore the token is subject to MITM attacks on HTTP and can then be used in an HTTPS context to do CSRF attacks.
Published 2018-08-06, last changed 2026-06-17.
How to fix
Upgrade to a fixed version: symfony/security-csrf 2.7.38, 2.8.31, 3.2.14, 3.3.13 (Packagist); symfony/security 2.7.38, 2.8.31, 3.2.14, 3.3.13 (Packagist); symfony/symfony 2.7.38, 2.8.31, 3.2.14, 3.3.13 (Packagist) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in symfony/symfony by pull request #24992, b4dbdd7cd8. Functions changed by the fix: __construct, getToken, refreshToken, removeToken, isTokenValid, getNamespace. Regression tests: src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2018-08-06 | Published |
| 2022-05-13 | Package advisory GHSA-92x6-h2gr-8gxq |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.49% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-92x6-h2gr-8gxq | symfony/security-csrf (Packagist) | 2.7.38 |
| GHSA-92x6-h2gr-8gxq | symfony/security-csrf (Packagist) | 2.8.31 |
| GHSA-92x6-h2gr-8gxq | symfony/security-csrf (Packagist) | 3.2.14 |
| GHSA-92x6-h2gr-8gxq | symfony/security-csrf (Packagist) | 3.3.13 |
| GHSA-92x6-h2gr-8gxq | symfony/security (Packagist) | 2.7.38 |
Also known as: GHSA-92x6-h2gr-8gxq
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2021-21424 | 2021-05-13 | 5.3 | Prevent user enumeration using Guard or the new Authenticator-based Security |
| CVE-2020-5275 | 2020-03-30 | 8.1 | Firewall configured with unanimous strategy was not actually unanimous in symfony/security-http |
| CVE-2017-11365 | 2019-05-23 | 9.8 | same package: symfony/security (Packagist) |
| CVE-2019-10911 | 2019-05-16 | 7.5 | same package: symfony/security (Packagist) |
| CVE-2018-19790 | 2018-12-18 | 6.1 | same package: symfony/security (Packagist) |
| CVE-2018-11407 | 2018-06-13 | 9.8 | same package: symfony/security (Packagist) |
| CVE-2018-11406 | 2018-06-13 | 8.8 | same package: symfony/security (Packagist) |
| CVE-2018-11385 | 2018-06-13 | 8.1 | same package: symfony/security (Packagist) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-16653, or call /api/v1/vulnerabilities/CVE-2017-16653. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.