REDHAT-BUG-2487073: XSS

Published Jun 9, 2026
·
Updated

Repository: migration-planner Priority: Medium Location: internal/handlers/validator/rules.go:11

Description: AgentStatusUpdate.CredentialUrl field is tagged validate:"url". go-playground/validator's url rule only checks RFC-3986 well-formedness, so javascript:alert(document.cookie) passes. Value is stored in Postgres and rendered as clickable link in migration-planner-ui-app inside Hybrid Cloud Console .

Security Impact:

Backend persistence gate for stored XSS in Red Hat hybrid-cloud console

Requires agent control alone, but chains with f003→f002 for any authenticated user to plant javascript: URL in another org's source

Script execution in victim's Hybrid Cloud Console session

Fix Suggestion: Parse URL at handler and reject anything whose scheme is not http or https before reaching service layer. UI should also stop rendering this field as raw href, but backend must not store malicious payload. See patches/f001.patch.

Affected Software

2 affected components
Red Hat Hybrid Cloud Console
migration-planner

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch f001.patch
  2. Configuration

    In the validator/handler before the service layer, parse AgentStatusUpdate.CredentialUrl and reject any value whose URL scheme is not exactly http or https (e.g., reject javascript: URLs) so malicious payloads are not stored/rendered.

    migration-planner (internal/handlers/validator/rules.go:11) AgentStatusUpdate.CredentialUrl URL scheme allowlist = http,https
  3. Configuration

    Update the UI so AgentStatusUpdate.CredentialUrl is not rendered as a raw clickable href; ensure the backend only stores safe http/https links that the UI can render safely.

    migration-planner-ui-app (Hybrid Cloud Console) rendering of AgentStatusUpdate.CredentialUrl = not rendered as raw href
  4. Compensating control

    Because the issue can be exploited by authenticated users across orgs (f003→f002 chain), enforce org scoping/authorization checks so one authenticated user cannot plant/affect stored XSS in another org’s migration-planner data.

Event History

Jun 9, 2026
Data Sourced
via Red Hat·05:55 PM
DescriptionSeverityAffected Software

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