Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2012-3465

CVE-2012-3465: actionpack Cross-site Scripting vulnerability

October 24, 2017 (updated January 21, 2025)

Cross-site scripting (XSS) vulnerability in actionpack/lib/action_view/helpers/sanitize_helper.rb in the strip_tags helper in Ruby on Rails before 2.3.16, 3.0.x before 3.0.17, 3.1.x before 3.1.8, and 3.2.x before 3.2.8 allows remote attackers to inject arbitrary web script or HTML via malformed HTML markup.

References

  • github.com/advisories/GHSA-7g65-ghrg-hpf5
  • github.com/rails/rails
  • github.com/rails/rails/commit/cf48c9c7dcbef8543171f7f7de8d3d9a16b58e77
  • github.com/rails/rails/commit/e91e4e8bbee12ce1496bf384c04da6be296b687a
  • groups.google.com/group/rubyonrails-security/msg/7fbb5392d4d282b5?dmode=source&output=gplain
  • nvd.nist.gov/vuln/detail/CVE-2012-3465

Code Behaviors & Features

Detect and mitigate CVE-2012-3465 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0.beta before 3.0.17, all versions before 2.3.16, all versions starting from 3.1.0 before 3.1.8, all versions starting from 3.2.0 before 3.2.8

Fixed versions

  • 3.0.17
  • 3.1.8
  • 3.2.8
  • 2.3.16

Solution

Upgrade to versions 2.3.16, 3.0.17, 3.1.8, 3.2.8 or above.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/actionpack/CVE-2012-3465.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.