GHSA-rrvc-c7xg-7cf3

Suggest an improvement
Source
https://github.com/advisories/GHSA-rrvc-c7xg-7cf3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-rrvc-c7xg-7cf3/GHSA-rrvc-c7xg-7cf3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rrvc-c7xg-7cf3
Aliases
Published
2024-06-06T21:36:40Z
Modified
2024-06-06T22:12:21.325052Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
TokenController formName not sanitized in hidden input
Details

Impact

TokenController get parameter formName not sanitized in returned input field leads to XSS.

What kind of vulnerability is it? Who is impacted?

Patches

Has the problem been patched? What versions should users upgrade to?

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Create 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.

References

Are there any links users can visit to find out more?

Database specific
{
    "nvd_published_at": "2024-06-06T16:15:13Z",
    "cwe_ids": [
        "CWE-79",
        "CWE-80"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-06T21:36:40Z"
}
References

Affected packages

Packagist / sulu/form-bundle

Package

Name
sulu/form-bundle
Purl
pkg:composer/sulu/form-bundle

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.5.3

Affected versions

2.*

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