{"id":"CVE-2023-28628","published":"2023-03-27T20:20:08Z","modified":"2025-02-19T15:21:18Z","title":"`authority-regex` returns the wrong authority in lambdaisland/uri","vendor":"lambdaisland","product":"uri","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00548,"percentile":0.46808,"provenance":"source"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"references":[{"url":"https://github.com/lambdaisland/uri/security/advisories/GHSA-cp4w-6x4w-v2h5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lambdaisland/uri/commit/f46db3e84846f79e14bfee0101d9c7a872321820","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":9.36},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"lambdaisland","affectedVersions":[{"vendor":"lambdaisland","product":"uri","versions":["< 1.14.120"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-19T15:20:56.651241Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"lambdaisland:uri","vulnerableRanges":["<1.14.120"],"patched":["1.14.120"],"from":["GHSA-cp4w-6x4w-v2h5"],"provenance":"source"}],"summary":{"text":"The authority-regex in lambdaisland's uri library, a pure Clojure/ClojureScript URI parser, mishandles backslash characters in the username portion of a URL, so it can return the wrong authority. An attacker who can get a crafted URL (such as https://example.com\\\\@google.com) parsed by an application using the library, with a user needing to interact with the link, could cause the library to report a different host than the correct one, which may bypass host-based restrictions depending on how the application uses it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:33Z"},"euvd":{"id":"EUVD-2023-0986","exploited":false,"provenance":"source"}}