SecurityContext

CVE-2022-3704: Ruby on Rails - Stored XSS

  • Cve: CVE-2022-3704
  • Name: Ruby on Rails - Stored XSS
  • 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.
  • Impact: Potential for attackers to execute malicious scripts in users' browsers, leading to session hijacking or defacement.
  • Remediation: Apply the patch be177e4566747b73ff63fd5f529fab564e475ed4 as recommended.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00926
  • Epss percentile: 0.61363
  • Assignee: [email protected]
  • Published at: 2022-10-26T20:15:10Z
  • Age in days: 1490
  • Modified at: 2026-06-17T05:00:08Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-3704
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-707Improper Neutralization
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/rails/rails/issues/46244nvd2022-10-26

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4Patch, Third Party Advisory
https://github.com/rails/rails/issues/46244Exploit, Issue Tracking, Patch, Third Party Advisory
https://vuldb.com/?id.212319Permissions Required, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
rubyonrails:railsall versionsnonvd/v1/products/rubyonrails/rails

Projects

RepositoryLink kindsIndexedUrl
rails/railscommit, issuesyes/v1/repositories/rails/rails

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-10-26
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2436102
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports