{"id":"CVE-2023-28628","aliases":["CVE-2023-28628","GHSA-cp4w-6x4w-v2h5"],"related":[],"kind":"vulnerability","state":"published","title":"`authority-regex` returns the wrong authority in lambdaisland/uri","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Summary\n`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.\n\n### Details\n\nhttps://github.com/lambdaisland/uri/blob/d3355fcd3e235238f4dcd37be97787a84e580072/src/lambdaisland/uri.cljc#L9\n\nThis regex doesn't handle the backslash (`\\`) character in the username correctly, leading to a wrong output.\n**Payload:** `https://example.com\\\\@google.com`\nThe returned host is `google.com`, but the correct host should be `example.com`.\n\n`urllib3` (Python) and `google-closure-library` (Javascript) return `example.com` as the host. Here the correct (or current) regex used by `google-closure-library`:\n\nhttps://github.com/google/closure-library/blob/0e567abedb058e9b194a40cfa3ad4c507653bccf/closure/goog/uri/utils.js#L189\n\n### PoC\n\n```\n(ns poc.core)\n(require '[lambdaisland.uri :refer (uri)])\n\n(def myurl \"https://example.com\\\\@google.com\")\n\n(defn -main\n  []\n   (println myurl)\n   (println (:host (uri myurl)))\n)\n```\n\n\n### Impact\n\nThe library returns the wrong authority, and it can be abused to bypass host restrictions.\n\n### Reference\n\nWHATWG Living URL spec, section 4.4 URL Parsing, host state: https://url.spec.whatwg.org/#url-parsing","format":"markdown","source":"ghsa"}],"published":"2023-03-27T20:20:08.358Z","modified":"2026-06-17T05:48:25.473Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601","CWE-706"],"affected":[{"ranges":[{"version":"< 1.14.120","status":"affected"}],"vendor":"lambdaisland","product":"uri","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.14.120"}],"ecosystem":"Maven","package":"lambdaisland:uri","purl":"pkg:maven/lambdaisland/uri","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.14.120"}],"vendor":"lambdaisland","product":"uri","cpe":"cpe:2.3:a:lambdaisland:uri:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/lambdaisland/uri/security/advisories/GHSA-cp4w-6x4w-v2h5","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lambdaisland/uri/commit/f46db3e84846f79e14bfee0101d9c7a872321820","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28628","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/google/closure-library/blob/0e567abedb058e9b194a40cfa3ad4c507653bccf/closure/goog/uri/utils.js#L189","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lambdaisland/uri","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/lambdaisland/uri/blob/d3355fcd3e235238f4dcd37be97787a84e580072/src/lambdaisland/uri.cljc#L9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lambdaisland/uri/releases/tag/v1.14.120","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-02-19T15:20:56.651Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-28628","url":"https://www.cve.org/CVERecord?id=CVE-2023-28628","licence":"CVE Terms of Use","modified":"2025-02-19T15:21:18.308Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cp4w-6x4w-v2h5","url":"https://github.com/advisories/GHSA-cp4w-6x4w-v2h5","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:12.623Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-28628","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28628","licence":"Public domain","modified":"2026-06-17T05:48:25.473Z"}],"updatedAt":"2026-11-25T22:58:22.728Z","epss":{"score":0.00548,"percentile":0.47324,"date":"2026-12-02T12:00:21.000Z"}}