REDHAT-BUG-2487107: High severity npm/react-router-dom vulnerability
Repository: migration-planner-ui-app Priority: High Location: src/ui/environment/views/AgentStatusView.tsx:50 (also CreateFromOva.tsx:196, Environment.tsx:131)
Description: Discovery agents self-report credentialUrl when registering. The UI renders this string as react-router-dom <Link to=> prop and plain <a href> with no scheme validation. react-router-dom 6.30.3 passes absolute-scheme URLs to DOM <a href>, and React 18.3.1 only warns in dev mode about javascript: - production builds render verbatim. Users are instructed to click the link to reach the discovery VM.
Security Impact:
Attacker registers agent with credentialUrl: "javascript:..."
Stored payload executes in http://console.redhat.com origin when any org user clicks link
Yields victim's RH SSO session, enabling cross-tenant data access and API actions as victim
Persistent compromise within organization
Fix Suggestion: Introduce safeExternalUrl() helper that parses URL and returns only if protocol is http: or https:. Gate all three render sites so non-http(s) credentialUrl doesn't render as link. See patches/f101.patch.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2487107?
The severity of REDHAT-BUG-2487107 is classified as high with a score of 7.
How do I fix REDHAT-BUG-2487107?
To fix REDHAT-BUG-2487107, ensure that the credentialUrl from discovery agents is properly sanitized before rendering it in the <Link to=> prop.
What components are affected by REDHAT-BUG-2487107?
REDHAT-BUG-2487107 affects the migration-planner-ui-app, specifically in the AgentStatusView.tsx, CreateFromOva.tsx, and Environment.tsx files.
What is the description of REDHAT-BUG-2487107?
REDHAT-BUG-2487107 describes an issue where discovery agents self-report the credentialUrl during registration, which is rendered in the UI without proper validation.
When was REDHAT-BUG-2487107 published?
REDHAT-BUG-2487107 was published on June 9, 2026.