Intel

AIKIDO-2025-10125

lookbook is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 3, 2025

35

Low Risk

This Affects:

RUBYlookbook
0.2.0 - 2.3.4
Fixed in 2.3.5
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) due to improper escaping of parameter values. If an attacker injects a specially crafted value containing quotes and JavaScript code, it could be executed within the application. For example, a value like "-alert(window.location.href)-" could bypass protections and execute malicious scripts. To mitigate this, the fix ensures that special characters, including quotes, are properly escaped using html_escape, converting them to their HTML entity equivalents while preserving the intended functionality.

Who does this affect?

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

Background info

lookbook is vulnerable to Cross-site Scripting (XSS) in versions 0.2.0 - 2.3.4.

How to fix this

Upgrade the lookbook 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