Every CVE Search/ Get API key

CVE-2023-28628

`authority-regex` returns the wrong authority in lambdaisland/uri

5.4 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.55%Up 0.5 points since Mar 28, 2023
90%50%10%1%

What each source reports

CVE List Score used 5.4

`authority-regex` returns the wrong authority in lambdaisland/uri

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.

Record
CVE-2023-28628
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness
CWE-706
Updated
2026-11-02
EUVDEUVD-2023-0986 5.4

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.

Record
EUVD-2023-0986
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-cp4w-6x4w-v2h5 6.5

lambdaisland/uri `authority-regex` returns the wrong authority

Summary

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 CVE-2020-8910.

Details

https://github.com/lambdaisland/uri/blob/d3355fcd3e235238f4dcd37be97787a84e580072/src/lambdaisland/uri.cljc#L9

This regex doesn't handle the backslash (\) character in the username correctly, leading to a wrong output. Payload: https://example.com\\@google.com The returned host is google.com, but the correct host should be example.com.

urllib3 (Python) and google-closure-library (Javascript) return example.com as the host. Here the correct (or current) regex used by google-closure-library:

https://github.com/google/closure-library/blob/0e567abedb058e9b194a40cfa3ad4c507653bccf/closure/goog/uri/utils.js#L189

PoC

(ns poc.core)
(require '[lambdaisland.uri :refer (uri)])

(def myurl "https://example.com\\@google.com")

(defn -main
  []
   (println myurl)
   (println (:host (uri myurl)))
)

Impact

The library returns the wrong authority, and it can be abused to bypass host restrictions.

Reference

WHATWG Living URL spec, section 4.4 URL Parsing, host state: https://url.spec.whatwg.org/#url-parsing

Record
GHSA-cp4w-6x4w-v2h5
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness
CWE-601, CWE-706
Updated
2026-11-02
NVD 5.4

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.

Record
CVE-2023-28628
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-706, CWE-601
Updated
2026-11-02
OSV 5.4

`authority-regex` returns the wrong authority in lambdaisland/uri

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.

Record
CVE-2023-28628
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness
CWE-706
Updated
2026-11-02
OSVDEBIAN-CVE-2023-28628 6.1

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.

Record
DEBIAN-CVE-2023-28628
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVGHSA-cp4w-6x4w-v2h5 6.5

lambdaisland/uri `authority-regex` returns the wrong authority

Summary

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 CVE-2020-8910.

Details

https://github.com/lambdaisland/uri/blob/d3355fcd3e235238f4dcd37be97787a84e580072/src/lambdaisland/uri.cljc#L9

This regex doesn't handle the backslash (\) character in the username correctly, leading to a wrong output. Payload: https://example.com\\@google.com The returned host is google.com, but the correct host should be example.com.

urllib3 (Python) and google-closure-library (Javascript) return example.com as the host. Here the correct (or current) regex used by google-closure-library:

https://github.com/google/closure-library/blob/0e567abedb058e9b194a40cfa3ad4c507653bccf/closure/goog/uri/utils.js#L189

PoC

(ns poc.core)
(require '[lambdaisland.uri :refer (uri)])

(def myurl "https://example.com\\@google.com")

(defn -main
  []
   (println myurl)
   (println (:host (uri myurl)))
)

Impact

The library returns the wrong authority, and it can be abused to bypass host restrictions.

Reference

WHATWG Living URL spec, section 4.4 URL Parsing, host state: https://url.spec.whatwg.org/#url-parsing

Record
GHSA-cp4w-6x4w-v2h5
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness
CWE-601, CWE-706
Updated
2026-11-02
OSVUBUNTU-CVE-2023-28628 5.4

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.

Record
UBUNTU-CVE-2023-28628
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVUSN-8151-1 No score

lambdaisland-uri-clojure vulnerability

It was discovered that lambdaisland/uri did not properly sanitize the backslash character in URI strings. An attacker could possibly use this issue to bypass security checks or redirect users.

Record
USN-8151-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
lambdaisland:uri
Maven
before 1.14.120
1.14.120
lambdaisland-uri-clojure
Debian:12
All versions, plus listed versions
1.13.95-21.19.155-11.19.155-21.19.155-3
None known
lambdaisland-uri-clojure
Debian:13
All versions, plus listed versions
1.13.95-21.19.155-11.19.155-21.19.155-3
None known
lambdaisland-uri-clojure
Debian:14
All versions, plus listed versions
1.13.95-21.19.155-11.19.155-21.19.155-3
None known
lambdaisland-uri-clojure
Ubuntu:Pro:22.04:LTS
before 1.13.95-2ubuntu0.22.04.1~esm1, plus listed versions
1.13.95-2
1.13.95-2ubuntu0.22.04.1~esm1
lambdaisland-uri-clojure
Ubuntu:Pro:24.04:LTS
before 1.13.95-2ubuntu0.24.04.1~esm2, plus listed versions
1.13.95-2
1.13.95-2ubuntu0.24.04.1~esm2
lambdaisland-uri-clojure
Ubuntu:25.10
All versions, plus listed versions
1.13.95-2
None known
lambdaisland-uri-clojure
Ubuntu:26.10
All versions, plus listed versions
1.13.95-2ubuntu1
None known
lambdaisland-uri-clojure
Ubuntu:26.04:LTS
All versions, plus listed versions
1.13.95-21.13.95-2build11.13.95-2build21.13.95-2ubuntu1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-28628 is a medium vulnerability (CVSS 5.4) in Lambdaisland Uri, published March 27, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.55%, the 45th percentile. Fixed in lambdaisland:uri 1.14.120.

References

Show 7 moreShow less
MoveEnter Open