REDHAT-BUG-2542699: XSS

Published Sep 28, 2026
·
Updated

A DOM-based cross-site scripting (XSS) flaw was found in Project Quay's OAuth local callback handler (OAuthLocalHandler.tsx). When the format=json query parameter is supplied, the component reads the accesstoken from the URL fragment and assigns it to document.body.innerHTML via JSON.stringify, which does not HTML-encode angle brackets. An attacker can craft a URL containing a malicious accesstoken in the fragment that, when clicked by a Quay user, executes arbitrary JavaScript in the Quay registry origin. The format=json code path bypasses OAuth state validation and requires no authentication.

Affected Software

1 affected component
Red Hat Quay

Event History

Sep 28, 2026
Data Sourced
via Red Hat·08:58 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An attacker does not need authentication. Exploitation requires persuading a Quay user to open an attacker-crafted URL with a malicious access_token value in the URL fragment and the format=json query parameter.

2

Is OAuth state validation performed on the affected path?

No. The format=json callback path bypasses OAuth state validation.

3

What is the impact if exploitation succeeds?

The malicious token value can execute arbitrary JavaScript in the Quay registry origin. This is a DOM-based cross-site scripting issue in the OAuth local callback handler.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203