# CVE-2023-28628: \`authority-regex\` returns the wrong authority in lambdaisland/uri

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

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.58% (percentile 41, 2026-11-26)
- **CWE:** CWE-706
- **Aliases:** GHSA-cp4w-6x4w-v2h5
- **Published:** 2023-03-27T20:20:08.358Z
- **Modified:** 2026-06-17T05:48:25.473Z

## Who should check

- Projects that depend on Maven package lambdaisland:uri (\< 1.14.120)
- Anyone running lambdaisland uri \< 1.14.120

## Description

lambdaisland/uri is a pure Clojure/ClojureScript URI library. In versions prior to 1.14.120 \`authority-regex\` allows an attacker to send malicious URLs to be parsed by the \`lambdaisland/uri\` and return the wrong authority. This issue is similar to but distinct from CVE-2020-8910. The regex in question doesn't handle the backslash (\`\\\`) character in the username correctly, leading to a wrong output. ex. a payload of \`https://example.com\\\\@google.com\` would return that the host is \`google.com\`, but the correct host should be \`example.com\`. Given that the library returns the wrong authority this may be abused to bypass host restrictions depending on how the library is used in an application. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- Maven `lambdaisland:uri`: affected \< 1.14.120; fixed 1.14.120 (osv)
- lambdaisland uri: \< 1.14.120 (cvelist)

## Mitigation

- Upgrade lambdaisland:uri to 1.14.120 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-28628.md
Affected: lambdaisland:uri < 1.14.120
Fixed in: 1.14.120

Steps:
1. Search this machine and project for lambdaisland:uri (Maven), lambdaisland uri: 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-2023-28628 being exploited?

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

### How serious is CVE-2023-28628?

Medium: CVSS 5.4 (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-2023-28628?

lambdaisland:uri \< 1.14.120.

### Is there a fix for CVE-2023-28628?

Yes. Fixed in 1.14.120. Upgrade lambdaisland:uri to 1.14.120 or later.

### How do I check if I'm affected by CVE-2023-28628?

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/lambdaisland/uri/security/advisories/GHSA-cp4w-6x4w-v2h5>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-28628>
- patch: <https://github.com/lambdaisland/uri/commit/f46db3e84846f79e14bfee0101d9c7a872321820>
- other: <https://github.com/google/closure-library/blob/0e567abedb058e9b194a40cfa3ad4c507653bccf/closure/goog/uri/utils.js#L189>
- other: <https://github.com/lambdaisland/uri>
- other: <https://github.com/lambdaisland/uri/blob/d3355fcd3e235238f4dcd37be97787a84e580072/src/lambdaisland/uri.cljc#L9>
- other: <https://github.com/lambdaisland/uri/releases/tag/v1.14.120>

## 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-2023-28628>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cp4w-6x4w-v2h5> (license: <https://creativecommons.org/licenses/by/4.0/>)

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