# CVE-2022-3704: Ruby on Rails _table.html.erb cross site scripting

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/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): 0.93%, higher than 61% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-26T00:00:00.000Z
- Modified: 2026-09-10T03:49:46.489Z
- Also known as: GHSA-9chr-4fjh-5rgw, BIT-RAILS-2022-3704
- Weaknesses: CWE-79, CWE-707
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- unspecified Ruby on Rails: n/a
- rubyonrails rails: up to *
- actionpack (RubyGems): up to 7.0.4
- rails (Bitnami): no versions given

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/rails/rails/issues/46244> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4> (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)

## Sources

- CVE List: [CVE-2022-3704](https://www.cve.org/CVERecord?id=CVE-2022-3704), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9chr-4fjh-5rgw](https://github.com/advisories/GHSA-9chr-4fjh-5rgw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-3704](https://nvd.nist.gov/vuln/detail/CVE-2022-3704), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RAILS-2022-3704](https://osv.dev/vulnerability/BIT-RAILS-2022-3704), Apache-2.0, modified 2024-01-31

---

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