Skip to content
OpenAdvisories
Medium · 5.4 CVE-2023-28628 EUVD-2023-0986GHSA-cp4w-6x4w-v2h5

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

Published Mar 27, 2023 · Updated Feb 19, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
lambdaisland uri < 1.14.120 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lambdaisland-uri-clojure No fix yet —
Debian 13 lambdaisland-uri-clojure No fix yet —
Debian 12 lambdaisland-uri-clojure No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lambdaisland-uri-clojure No fix yet —
Ubuntu 26.04 LTS lambdaisland-uri-clojure No fix yet —
Ubuntu 25.10 lambdaisland-uri-clojure No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS lambdaisland-uri-clojure 1.13.95-2ubuntu0.24.04.1~esm2 USN-8151-1
Ubuntu Pro 22.04 LTS lambdaisland-uri-clojure 1.13.95-2ubuntu0.22.04.1~esm1 USN-8151-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven lambdaisland:uri < 1.14.120 1.14.120 GHSA-cp4w-6x4w-v2h5

Advisories 1

References