Description
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.
Published: 2026-02-21
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Origin validation bypass enabling OAuth token exfiltration and potential account takeover.
Action: Patch
AI Analysis

Impact

Feathersjs versions 5.0.39 and earlier validate request origins by checking whether the Referer header starts with any allowed origin, using startsWith. This prefix-only comparison allows an attacker to register a domain that shares a common prefix with an authorized origin (for example, https://target.com.attacker.com matches https://target.com). The flaw can be exploited when the origins array is configured, enabling an unauthorized origin to initiate the OAuth flow and exfiltrate tokens. On a successful attack, the attacker can achieve full account takeover. The weakness corresponds to improper origin validation (CWE-346).

Affected Systems

The affected product is the Feathersframework (feathersjs:feathers) running on Node.js. All releases up to and including version 5.0.39 are vulnerable; the defect was fixed in release 5.0.40.

Risk and Exploitability

The vulnerability scores a 7.6 on the CVSS base list, indicating high severity, while the EPSS score is less than 1 % suggesting a low probability of exploitation at this time. It is not listed in the CISA KEV catalog. Attackers would need to control or register a domain that shares a common prefix with an allowed origin, and the target application must be configured to use OAuth with a permissive origins list. Because the flaw directly impacts the integrity of OAuth token handling, organizations should regard the risk as significant even though the exploitation likelihood remains very low.

Generated by OpenCVE AI on April 17, 2026 at 16:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Feathers to version 5.0.40 or later where the origin validation logic has been corrected.
  • If upgrading is not immediately possible, restrict the list of allowed origins to exact, trusted domains and avoid using prefix matching, or implement a custom validator that checks the full origin string.
  • Review and limit OAuth redirect URIs and origin headers in the application configuration to prevent misuse by unauthorized domains.

Generated by OpenCVE AI on April 17, 2026 at 16:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mp4x-c34x-wv3x Feathers has an origin validation bypass via prefix matching
History

Wed, 25 Feb 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:feathersjs:feathers:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Mon, 23 Feb 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 23 Feb 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Feathersjs
Feathersjs feathers
Vendors & Products Feathersjs
Feathersjs feathers

Sat, 21 Feb 2026 04:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Feathers has an origin validation bypass via prefix matching
Weaknesses CWE-346
References
Metrics cvssV4_0

{'score': 7.6, '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'}


Subscriptions

Feathersjs Feathers
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-23T19:13:45.407Z

Reserved: 2026-02-18T19:47:02.154Z

Link: CVE-2026-27192

cve-icon Vulnrichment

Updated: 2026-02-23T19:13:39.864Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-21T04:15:58.697

Modified: 2026-02-25T15:12:45.427

Link: CVE-2026-27192

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T17:00:10Z

Weaknesses