{"id":"CVE-2026-27192","published":"2026-02-21T03:50:35Z","modified":"2026-02-23T19:13:45Z","title":"Feathers has an origin validation bypass via prefix matching","vendor":"feathersjs","product":"feathers","tier":"tail","description":{"text":"Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. In versions 5.0.39 and below, origin validation uses startsWith() for comparison, allowing attackers to bypass the check by registering a domain that shares a common prefix with an allowed origin.The getAllowedOrigin() function checks if the Referer header starts with any allowed origin, and this comparison is insufficient as it only validates the prefix. This is exploitable when the origins array is configured and an attacker registers a domain starting with an allowed origin string (e.g., https://target.com.attacker.com bypasses https://target.com). On its own, tokens are still redirected to a configured origin. However, in specific scenarios an attacker can initiate the OAuth flow from an unauthorized origin and exfiltrate tokens, achieving full account takeover. This issue has bee fixed in version 5.0.40.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00266,"percentile":0.18941,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/feathersjs/feathers/security/advisories/GHSA-mp4x-c34x-wv3x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401","tags":["x_refsource_MISC"]},{"url":"https://github.com/feathersjs/feathers/releases/tag/v5.0.40","tags":["x_refsource_MISC"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":3.79},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"feathersjs","affectedVersions":[{"vendor":"feathersjs","product":"feathers","versions":["< 5.0.40"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-23T19:13:28.459847Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@feathersjs/authentication-oauth","vulnerableRanges":["<5.0.40"],"patched":["5.0.40"],"from":["GHSA-mp4x-c34x-wv3x"],"provenance":"source"}],"summary":{"text":"The origin validation in the Feathers framework (feathersjs/feathers, versions 5.0.39 and below) uses startsWith() in its getAllowedOrigin() check, so a Referer header is accepted if it merely begins with an allowed origin string. An attacker who registers a domain sharing that prefix (for example, https://target.com.attacker.com against https://target.com) can get past the check, and in specific OAuth flow scenarios, initiated from an unauthorized origin and with user interaction, this can lead to token exfiltration and account takeover, provided the origins array is configured.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:53Z"},"euvd":{"id":"EUVD-2026-7549","exploited":false,"provenance":"source"}}