🛡️ CVE-2022-27777 — actionpack

🟡 CVSS 6.1 — Medium ⚠️ Exploit Public CWE-79 NVD
6.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

XSS Vulnerability in Action View tag helpers

There is a possible XSS vulnerability in Action View tag helpers. Passing untrusted input as hash keys can lead to a possible XSS vulnerability. This vulnerability has been assigned the CVE identifier CVE-2022-27777.

Versions Affected: ALL

Not affected: NONE

Fixed Versions: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1

Impact

If untrusted data is passed as the hash key for tag attributes, there is a possibility that the untrusted data may not be properly escaped which can lead to an XSS vulnerability.

Impacted code will look something like this:

```

check_box_tag('thename', 'thevalue', false, aria: { malicious_input => 'thevalueofaria' })

```

Where the "malicious_input" variable contains untrusted data.

All users running an affected release should either upgrade or use one of the workarounds immediately.

Releases

The FIXED releases are available at the normal locations.

Workarounds

Escape the untrusted data before using it as a key for tag helper methods.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.

Weakness class

CVE-2022-27777 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.

Affected software

CVE-2022-27777 is recorded against 3 packages.

  • actionpack (from 7.0.0 up to 7.0.2.4)
  • actionview (from 7.0.0 up to 7.0.2.4)
  • debian-linux

Timeline and source

Published on 26 May 2022 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.

References

discuss.rubyonrails.org
lists.debian.org
www.debian.org
discuss.rubyonrails.org
lists.debian.org
www.debian.org

CVE-2022-27777 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity MEDIUM
CVSS Score 6.1
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE CWE-79
Public Exploit ⚠️ Yes
Source NVD
Published 2022-05-26
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
actionpack 7.0.0 7.0.2.4
actionview 7.0.0 7.0.2.4
debian-linux

Similar Threats

Exploit Protection

Are you running actionpack?

CVE-2022-27777 carries CVSS 6.1 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-27777 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.