CVE-2024-22411 Cross site scripting in Action messages on Avo

Medium 6.5 Published Updated

Attackers can inject malicious scripts via unsanitized action messages in Avo admin panels, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-22411?

CVE-2024-22411 is a medium-severity cross-site scripting vulnerability in avo-hq avo, published on 16 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Avo is a framework to create admin panels for Ruby on Rails apps. In Avo 3 pre12, any HTML inside text that is passed to `error` or `succeed` in an `Avo::BaseAction` subclass will be rendered directly without sanitization in the toast/notification that appears in the UI on Action completion. A malicious user could exploit this vulnerability to trigger a cross site scripting attack on an unsuspecting user. This issue has been addressed in the 3.3.0 and 2.47.0 releases of Avo. Users are advised to upgrade.

Weakness: CWE-79

Which versions are affected by CVE-2024-22411?

4 open source packages ship an affected version, including avo. It affects 1 product.

PackageAffectedFixed in
avo RubyGemsAll versions2.47.0
avo RubyGemsAll versions2.47.0
avo RubyGemsFrom 3.0.0.beta13.3.0
avo RubyGemsFrom 3.0.0.beta13.3.0

Products include Avohq Avo.

How do I fix CVE-2024-22411?

Upgrade avo to a fixed version for your release line: 2.47.0 or 3.3.0.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-22411 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22411 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-g8vp-2v5p-9qfh.

Is CVE-2024-22411 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free