{"id":"GHSA-rrvc-c7xg-7cf3","aliases":["CVE-2024-37156"],"title":"TokenController formName not sanitized in hidden input","description":"### Impact\n\nTokenController get parameter formName not sanitized in returned input field leads to XSS.\n\n_What kind of vulnerability is it? Who is impacted?_\n\n### Patches\n\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nCreate a custom Symfony Request listener which checks for the get value of `form` for the TokenController and if not valid stop the request dispatching and return a error status code.\n\n### References\n\n_Are there any links users can visit to find out more?_\n","severity":"medium","score":6.1,"published":"2024-06-06T21:36:40.000Z","modified":"2026-09-10T03:50:15.786Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"sulu/form-bundle","ranges":[{"events":[{"introduced":"2.0.0"},{"fixed":"2.5.3"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.3.0","2.4.0","2.5.0","2.5.1","2.5.2"],"fixed":["2.5.3"]}],"references":["https://github.com/sulu/SuluFormBundle/security/advisories/GHSA-rrvc-c7xg-7cf3","https://nvd.nist.gov/vuln/detail/CVE-2024-37156","https://github.com/sulu/SuluFormBundle/commit/3f341b71a7309cbc8fd2c5bff894c654d1679b17","https://github.com/sulu/SuluFormBundle"],"sources":[{"name":"OSV","id":"GHSA-rrvc-c7xg-7cf3","modified":"2026-09-10T03:50:15.786393544Z","url":"https://osv.dev/vulnerability/GHSA-rrvc-c7xg-7cf3"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1}]}