CVE-2022-27777
MEDIUM 6.1CVSS 3.1XSS Vulnerability in Action View tag helpers
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.
- Published
- 26 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-ch3h-j2vf-95pv
- Sources
- NVDJSONOSV GHSA-ch3h-j2vf-95pvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
< 5.2.7.1 | 5.2.7.1 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 6.0.0, < 6.0.4.8 | 6.0.4.8 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 6.1.0, < 6.1.5.1 | 6.1.5.1 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 7.0.0, < 7.0.2.4 | 7.0.2.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | actionview | < 5.2.7.1 | 5.2.7.1 |
| OSV | RubyGems | actionview | >= 6.0.0, < 6.0.4.8 | 6.0.4.8 |
| OSV | RubyGems | actionview | >= 6.1.0, < 6.1.5.1 | 6.1.5.1 |
| OSV | RubyGems | actionview | >= 7.0.0, < 7.0.2.4 | 7.0.2.4 |
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 · 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 26 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Apr 2022)