XSS Vulnerability in Action View tag helpers
Moderate severity
GitHub Reviewed
Published
Apr 27, 2022
to the GitHub Advisory Database
•
Updated Jun 7, 2023
Package
Affected versions
<= 5.2.7.0
>= 6.0.0, <= 6.0.4.7
>= 6.1.0, <= 6.1.5.0
>= 7.0.0, <= 7.0.2.3
Patched versions
5.2.7.1
6.0.4.8
6.1.5.1
7.0.2.4
Description
Published to the GitHub Advisory Database
Apr 27, 2022
Reviewed
Apr 27, 2022
Published by the National Vulnerability Database
May 26, 2022
Last updated
Jun 7, 2023
There is a possible XSS vulnerability in Action View tag helpers. Passing untrusted input as hash keys can lead to a possible XSS vulnerability. This vulnerability has been assigned the CVE identifier CVE-2022-27777.
Versions Affected: ALL
Not affected: NONE
Fixed Versions: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1
Impact
If untrusted data is passed as the hash key for tag attributes, there is a possibility that the untrusted data may not be properly escaped which can lead to an XSS vulnerability.
Impacted code will look something like this:
Where the "malicious_input" variable contains untrusted data.
All users running an affected release should either upgrade or use one of the workarounds immediately.
Releases
The FIXED releases are available at the normal locations.
Workarounds
Escape the untrusted data before using it as a key for tag helper methods.
References