# CVE-2022-27777: XSS Vulnerability in Action View tag helpers

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.66%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-27T22:32:49.000Z
- Modified: 2026-06-17T04:37:29.363Z
- Also known as: GHSA-ch3h-j2vf-95pv
- Weaknesses: CWE-79
- Assigned by: hackerone

## Description

A XSS Vulnerability in Action View tag helpers >= 5.2.0 and < 5.2.0 which would allow an attacker to inject content if able to control input into specific attributes.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1
- actionview (RubyGems): before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4
- rubyonrails actionpack: before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://discuss.rubyonrails.org/t/cve-2022-27777-possible-xss-vulnerability-in-action-view-tag-helpers/80534> (exploit, patch, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2023/dsa-5372> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27777> (advisory)
- <https://github.com/rails/rails/commit/649516ce0feb699ae06a8c5e81df75d460cc9a85> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2022-27777.yml> (web)
- <https://groups.google.com/g/ruby-security-ann/c/9wJPEDv-iRw> (web)
- <https://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-released> (web)

## Sources

- CVE List: [CVE-2022-27777](https://www.cve.org/CVERecord?id=CVE-2022-27777), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-ch3h-j2vf-95pv](https://github.com/advisories/GHSA-ch3h-j2vf-95pv), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-27777](https://nvd.nist.gov/vuln/detail/CVE-2022-27777), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-27777 · Whole record: https://cve.day/CVE-2022-27777.json · Rebuilt by cve.day 2026-11-25T22:58:11.962Z
