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

CVE-2012-1099: XSS via posted select tag options

March 13, 2012 (updated August 8, 2019)

Ruby on Rails is vulnerable to remote cross-site scripting because the application does not validate manually generated select tag options upon submission to actionpack/lib/action_view/helpers/form_options_helper.rb. This may allow a user to create a specially crafted request that would execute arbitrary script code in a user’s browser within the trust relationship between their browser and the server.

References

  • github.com/rails/rails/commit/9435f5a479317458c558ae743b7d876dd5a5db20
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/OSVDB-79727.yml

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0.alpha0 before 3.0.12, all versions starting from 3.1.0.alpha0 before 3.1.4, all versions starting from 3.2.0.alpha0 before 3.2.2

Fixed versions

  • 3.0.12
  • 3.1.4
  • 3.2.2

Solution

Upgrade to versions 3.0.12, 3.1.4, 3.2.2 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-1099.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:46 +0000.