Intel

AIKIDO-2026-485491

solidus_frontend is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-87gm-56c6-255g Published 5 days ago

81

High Risk

This Affects:

RUBYsolidus_frontend
1.0.0 - 4.6.3
Fixed in 4.6.4
4.7.0 - 4.7.1
Fixed in 4.7.2
Are you affected? Scan for Free

TL;DR

Spree::OrdersHelper#truncated_product_description passes Spree::Product#description through raw before truncating it, so HTML stored in a product description, such as an onerror image tag or a script tag, reaches the checkout confirmation step and the order page unescaped. truncate_html only shortens the text and passes the markup through unchanged, so the markup executes in the browser of any customer who views an order containing that product, including guests following a tokenized order link. Planting the payload needs product management or superuser access in the back office, but the script then runs in the viewing customer's session and can issue same origin requests such as changing the account email. The fix sanitizes the description with the Rails allowlist sanitizer before truncation, unless a store has opted into Spree::Config.show_raw_product_description.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

solidus_frontend is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 4.6.3 and 4.7.0 - 4.7.1.

How to fix this

Upgrade the solidus_frontend library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform