GHSA-CH3H-J2VF-95PV
XSS Vulnerability in Action View tag helpers
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 5.2.7.1 | actionview · -1 d desde divulgación | |
| Remediación | Parche 6.0.4.8 | actionview · -1 d desde divulgación | |
| Remediación | Parche 6.1.5.1 | actionview · -1 d desde divulgación | |
| Remediación | Parche 7.0.2.4 | actionview · -1 d desde divulgación | |
| Divulgación | Publicada | GHSA-CH3H-J2VF-95PV divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
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:
check_box_tag('thename', 'thevalue', false, aria: { malicious_input => 'thevalueofaria' })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.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
rubygemsactionview |
Corregida | 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4 | -1 d · -1 d · -1 d · -1 d | 8.1.4.1 no afectada |
5.2.7.16.0.4.86.1.5.17.0.2.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2022-27777https://github.com/rails/rails/commit/649516ce0feb699ae06a8c5e81df75d460cc9a85https://discuss.rubyonrails.org/t/cve-2022-27777-possible-xss-vulnerability-in-action-view-tag-helpers/80534https://github.com/rails/railshttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2022-27777.ymlhttps://groups.google.com/g/ruby-security-ann/c/9wJPEDv-iRwhttps://lists.debian.org/debian-lts-announce/2022/09/msg00002.htmlhttps://rubyonrails.org/2022/4/26/Rails-7-0-2-4-6-1-5-1-6-0-4-8-and-5-2-7-1-have-been-releasedhttps://www.debian.org/security/2023/dsa-5372Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
