Intel

AIKIDO-2026-553599

omnifaces is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-7qfp-gggj-2fv4 Published 3 days ago

61

Medium Risk

This Affects:

JAVAomnifaces
3.2.0 - 3.14.22
Fixed in 3.14.23
4.0.0 - 4.7.11
Fixed in 4.7.12
5.0.0 - 5.4.1
Fixed in 5.4.2
Are you affected? Scan for Free

TL;DR

The <o:hashParam> component writes URL fragment names and values back into a JavaScript callback in the ajax response without escaping them for a JavaScript string context. A crafted link whose fragment contains a single quote can terminate the string literal and inject arbitrary script that runs when a victim opens the page. Exploitation requires the victim to open an externally supplied link, so user interaction is needed. The fix escapes both the parameter name and value for JavaScript strings before writing them into the callback.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use <o:hashParam>.

Background info

omnifaces is vulnerable to Cross-Site Scripting (XSS) in versions 3.2.0 - 3.14.22, 4.0.0 - 4.7.11 and 5.0.0 - 5.4.1.

How to fix this

Upgrade the org.omnifaces:omnifaces library to the patch version.