CVE-2022-3704
MEDIUM 5.4CVSS 3.1Cross-site Scripting in actionpack
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.
- Published
- 26 Oct 2022
- Last modified
- 10 Sep 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Modified
- Weakness
- CWE-707CWE-79
- Also known as
- GHSA-9chr-4fjh-5rgw
- Sources
- NVDJSONOSV GHSA-9chr-4fjh-5rgwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | RubyGems | actionpack | <= 7.0.4 |
References
- https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4 · Patch, Third Party Advisory, WEB
- https://github.com/rails/rails/issues/46244 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://vuldb.com/?id.212319 · Permissions Required, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-3704 · ADVISORY
- https://github.com/rails/rails/issues/46244#issuecomment-1380875153 · WEB
- https://github.com/rails/rails/pull/46269 · WEB
- https://github.com/rails/rails · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Oct 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Oct 2022)