Reflected XSS Vulnerability in Authentication Flow URL Handling in @dapperduckling/keycloak-connector-server
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
@dapperduckling/keycloak-connector-server is an opinionated series of libraries for Node.js applications and frontend clients to interface with keycloak. A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the authentication flow of the application. This issue arises due to improper sanitization of the URL parameters, allowing the URL bar's contents to be injected and reflected into the HTML page. An attacker could craft a malicious URL to execute arbitrary JavaScript in the browser of a victim who visits the link. Any application utilizing this authentication library is vulnerable. Users of the application are at risk if they can be lured into clicking on a crafted malicious link. The vulnerability has been patched in version 2.5.5 by ensuring proper sanitization and escaping of user input in the affected URL parameters. Users are strongly encouraged to upgrade. If upgrading is not immediately possible, users can implement the following workarounds: 1. Employ a Web Application Firewall (WAF) to block malicious requests containing suspicious URL parameters. or 2. Apply input validation and escaping directly within the application’s middleware or reverse proxy layer, specifically targeting the affected parameters.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DapperDuckling | keycloak-connector | before 2.5.5 | 2.5.5 | Patch available | CNA |
| — | @dapperduckling/keycloak-connector-server (npm) | before 2.5.5 | 2.5.5 | Patch available | GHSA-w5rq-g9r6-vrcg |
- keycloak-connector VendorDapperDuckling Affected before 2.5.5 Fixed in 2.5.5 Patch available CNA
- @dapperduckling/keycloak-connector-server (npm) Vendor— Affected before 2.5.5 Fixed in 2.5.5 Patch available GHSA-w5rq-g9r6-vrcg
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cloud_native_computing_foundation:keycloak-connector:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:cloud_native_computing_foundation:keycloak-connector:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · CNA keycloak-connector (DapperDuckling) Fixed in 2.5.5
- Fix · GHSA-w5rq-g9r6-vrcg @dapperduckling/keycloak-connector-server (npm) Fixed in 2.5.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-53843
- 2026-10-03 Alias added: GHSA-w5rq-g9r6-vrcg
References
Sources
- CVE-2024-53843 · CVE Program
- CVE-2024-53843 · NVD
- FIRST EPSS
- GHSA-w5rq-g9r6-vrcg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences