CVE-2012-1099: Ruby on Rails - Reflected XSS
- Cve: CVE-2012-1099
- Name: Ruby on Rails - Reflected XSS
- Description: Cross-site scripting (XSS) vulnerability in actionpack/lib/action_view/helpers/form_options_helper.rb in the select helper in Ruby on Rails 3.0.x before 3.0.12, 3.1.x before 3.1.4, and 3.2.x before 3.2.2 allows remote attackers to inject arbitrary web script or HTML via vectors involving certain generation of OPTION elements within SELECT elements.
- Impact: Attackers can execute arbitrary scripts in the context of the victim's browser, leading to session hijacking or defacement.
- Remediation: Update to Rails 3.0.12, 3.1.4, 3.2.2 or later versions.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to craft specific input to exploit the vulnerability.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.3
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
- Epss score: 0.02386
- Epss percentile: 0.84355
- Assignee: [email protected]
- Published at: 2012-03-13T10:55:01Z
- Age in days: 5369
- Modified at: 2026-06-16T23:39:01Z
- References total: 8
- Products total: 2
- Oss: yes
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-1099
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubyonrails:rails | = 3.1.0 rc8, = 3.1.0 rc7, = 3.1.0 rc6, = 3.0.9 rc5, = 3.1.0 rc5, = 3.0.0 beta4, = 3.0.8 rc4, = 3.0.9 rc4, = 3.1.0 rc4, = 3.2.2 rc1, = 3.2.1, = 3.2.0, = 3.2.0 rc1, = 3.2.0 rc2, = 3.1.4 rc1, = 3.1.3, = 3.1.2, = 3.1.2 rc1, = 3.1.2 rc2, = 3.1.1, = 3.1.1 rc1, = 3.1.1 rc2, = 3.1.1 rc3, = 3.1.0, = 3.1.0 beta1, = 3.1.0 rc1, = 3.1.0 rc2, = 3.1.0 rc3, = 3.0.12 rc1, = 3.0.11, = 3.0.10, = 3.0.10 rc1, = 3.0.9, = 3.0.9 rc1, = 3.0.9 rc2, = 3.0.9 rc3, = 3.0.8, = 3.0.8 rc1, = 3.0.8 rc2, = 3.0.8 rc3, = 3.0.7, = 3.0.7 rc1, = 3.0.7 rc2, = 3.0.6, = 3.0.6 rc1, = 3.0.6 rc2, = 3.0.5, = 3.0.5 rc1, = 3.0.4 rc1, = 3.0.3, = 3.0.2, = 3.0.2 pre, = 3.0.1, = 3.0.1 pre, = 3.0.0, = 3.0.0 beta, = 3.0.0 beta2, = 3.0.0 beta3, = 3.0.0 rc, = 3.0.0 rc2 | no | nvd | /v1/products/rubyonrails/rails |
| rubyonrails:ruby_on_rails | = 3.0.4 | no | nvd | /v1/products/rubyonrails/ruby_on_rails |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 2416366
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports