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

Low 3.5 Published Updated

Reported XSS in Rails routes table, though maintainers dispute validity; apply patch if concerned.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-3704?

CVE-2022-3704 is a low-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 26 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-79, CWE-707

Which versions are affected by CVE-2022-3704?

1 open source package ship an affected version, including rails. It affects 1 product.

PackageAffectedFixed in
rails BitnamiAll versionsNone

Products include Rubyonrails Rails.

How do I fix CVE-2022-3704?

No fix has been published for CVE-2022-3704 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-3704 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3704 exists.

All Rubyonrails Rails vulnerabilities

Sources

Also known as BIT-rails-2022-3704, DEBIAN-CVE-2022-3704.

Is CVE-2022-3704 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free