CVE-2024-53843: dapperduckling/keycloak-connector-server - Reflected XSS
- Cve: CVE-2024-53843
- Name: dapperduckling/keycloak-connector-server - Reflected XSS
- Description: @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.
- Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking, data theft, or further malicious actions.
- Remediation: Upgrade to version 2.5.5 or later, or implement input validation and escaping on affected URL parameters; employ a Web Application Firewall as a workaround.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: user_interaction
- Requirements: Victims need to click on malicious links
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Epss score: 0.00539
- Epss percentile: 0.45993
- Assignee: [email protected]
- Published at: 2024-11-26T00:15:07Z
- Age in days: 728
- Modified at: 2026-06-17T08:09:24Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-53843
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/DapperDuckling/keycloak-connector/security/advisories/GHSA-w5rq-g9r6-vrcg | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cloud_native_computing_foundation:keycloak-connector | < 2.5.5 | no | adp_cpes | /v1/products/cloud_native_computing_foundation/keycloak-connector |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| DapperDuckling/keycloak-connector | package, security_advisory | yes | /v1/repositories/DapperDuckling/keycloak-connector |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts