CVE-2022-3704
Ruby on Rails _table.html.erb cross site scripting
Also known as GHSA-9chr-4fjh-5rgw
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Projects that depend on RubyGems package actionpack (<= 7.0.4)
- Anyone running unspecified Ruby on Rails (versions: see the vendor advisory)
Vulnerability facts
- Affected
- actionpack <= 7.0.4
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 3.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 1.07% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-707
- Modified
Description
A vulnerability classified as problematic has been found in Ruby on Rails. This affects an unknown part of the file actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb. The manipulation leads to cross site scripting. It is possible to initiate the attack remotely. The real existence of this vulnerability is still doubted at the moment. The name of the patch is be177e4566747b73ff63fd5f529fab564e475ed4. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-212319. NOTE: Maintainer declares that there isn’t a valid attack vector. The issue was wrongly reported as a security vulnerability by a non-member of the Rails team.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems actionpack | <= 7.0.4 | — | osv |
| unspecified Ruby on Rails | — | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-3704. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-3704.md Affected: actionpack <= 7.0.4 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for actionpack (RubyGems), unspecified Ruby on Rails: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2022-3704 being exploited?
There is no confirmed exploitation: CVE-2022-3704 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.07% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-3704?
Low: CVSS 3.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2022-3704?
actionpack <= 7.0.4.
Is there a fix for CVE-2022-3704?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-3704?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.