---
title: "CVE-2011-2931\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2011-2931?format=md
keywords: index, follow
---

# CVE-2011-2931

Publication date 29 August 2011

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| rails | 11.04 natty | Fixed 2.3.5-1.2ubuntu1.1 |
| 10.10 maverick | Fixed 2.3.5-1.1ubuntu0.1 |
| 10.04 LTS lucid | Fixed 2.2.3-2ubuntu0.1 |
| 8.04 LTS hardy | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2011-2931?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| rails | * Other:   [586a944](https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a) * Vendor:   <http://www.debian.org/security/2011/dsa-2301> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2931)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2011-2931)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2011-2931)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2011-2931)

### Other references

* <http://www.openwall.com/lists/oss-security/2011/08/19/11>
* <https://bugzilla.redhat.com/show_bug.cgi?id=731436>
* <https://www.cve.org/CVERecord?id=CVE-2011-2931>
