# CVE-2024-53843: Reflected XSS Vulnerability in Authentication Flow URL Handling in @dapperduckling/keycloak-connector-server

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.79% (percentile 53, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-w5rq-g9r6-vrcg
- **Published:** 2024-11-25T23:18:59.029Z
- **Modified:** 2026-06-17T08:09:24.140Z

## Who should check

- Projects that depend on npm package @dapperduckling/keycloak-connector-server (\< 2.5.5)
- Anyone running DapperDuckling keycloak-connector \< 2.5.5

## 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.

## Affected and fixed versions

- npm `@dapperduckling/keycloak-connector-server`: affected \< 2.5.5; fixed 2.5.5 (osv)
- DapperDuckling keycloak-connector: \< 2.5.5 (cvelist)

## Mitigation

- Upgrade @dapperduckling/keycloak-connector-server to 2.5.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53843. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53843.md
Affected: @dapperduckling/keycloak-connector-server < 2.5.5
Fixed in: 2.5.5

Steps:
1. Search this machine and project for @dapperduckling/keycloak-connector-server (npm), DapperDuckling keycloak-connector: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53843 being exploited?

There is no confirmed exploitation: CVE-2024-53843 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53843?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-53843?

@dapperduckling/keycloak-connector-server \< 2.5.5.

### Is there a fix for CVE-2024-53843?

Yes. Fixed in 2.5.5. Upgrade @dapperduckling/keycloak-connector-server to 2.5.5 or later.

### How do I check if I'm affected by CVE-2024-53843?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/DapperDuckling/keycloak-connector/security/advisories/GHSA-w5rq-g9r6-vrcg>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-53843>
- other: <https://github.com/DapperDuckling/keycloak-connector>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53843>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w5rq-g9r6-vrcg> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-53843> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53843>
