CVE-2026-27192: CWE-346: Origin Validation Error in feathersjs feathers
CVE-2026-27192 is a high-severity origin validation vulnerability in the Feathersjs framework versions 5. 0. 39 and below. The flaw arises because the origin check uses a startsWith() string comparison, allowing attackers to bypass validation by registering domains that share a prefix with allowed origins (e. g. , https://target. com. attacker. com bypasses https://target. com).
AI Analysis
Technical Summary
Feathersjs is a popular JavaScript and TypeScript framework for building web APIs and real-time applications. In versions prior to 5.0.40, the framework's origin validation mechanism is flawed due to the use of the startsWith() method to verify if the Referer header matches any allowed origin. This method only checks if the Referer begins with an allowed origin string, which is insufficient because an attacker can register a malicious domain that prefixes the allowed origin string (for example, https://target.com.attacker.com). This bypasses the origin validation check, allowing the attacker to initiate OAuth authentication flows from unauthorized origins. While tokens are still redirected to configured origins, in certain scenarios this flaw enables attackers to exfiltrate OAuth tokens, resulting in full account takeover. The vulnerability is categorized under CWE-346 (Origin Validation Error) and has a CVSS 4.0 score of 7.6, indicating high severity. Exploitation requires user interaction but no privileges or authentication. The issue was publicly disclosed and fixed in Feathersjs version 5.0.40. No known exploits are currently reported in the wild.
Potential Impact
This vulnerability poses a significant risk to organizations using Feathersjs versions below 5.0.40, especially those implementing OAuth authentication flows. Successful exploitation can lead to unauthorized token exfiltration and full account takeover, compromising user accounts and potentially exposing sensitive data. The flaw undermines the integrity of origin validation, a critical security control in web authentication. Organizations relying on Feathersjs for API and real-time application development may face data breaches, unauthorized access, and reputational damage. The attack requires user interaction but no prior authentication, broadening the scope of potential victims. Given Feathersjs's adoption in various industries, the impact could be widespread, affecting both enterprise and consumer-facing applications.
Mitigation Recommendations
The primary mitigation is to upgrade Feathersjs to version 5.0.40 or later, where the origin validation logic has been corrected. Until upgrading is possible, organizations should implement stricter origin validation mechanisms that do not rely on prefix matching, such as exact string comparison or using standardized libraries for origin checks. Reviewing and restricting OAuth redirect URIs and origins to trusted domains is critical. Additionally, monitoring OAuth flows for anomalous origin headers and implementing multi-factor authentication can reduce risk. Developers should audit their applications for similar origin validation patterns and avoid using startsWith() or similar prefix-based checks for security-critical validations. Security teams should also educate users about phishing risks that could trigger malicious OAuth flows.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, India, Japan, South Korea
CVE-2026-27192: CWE-346: Origin Validation Error in feathersjs feathers
Description
CVE-2026-27192 is a high-severity origin validation vulnerability in the Feathersjs framework versions 5. 0. 39 and below. The flaw arises because the origin check uses a startsWith() string comparison, allowing attackers to bypass validation by registering domains that share a prefix with allowed origins (e. g. , https://target. com. attacker. com bypasses https://target. com).
AI-Powered Analysis
Technical Analysis
Feathersjs is a popular JavaScript and TypeScript framework for building web APIs and real-time applications. In versions prior to 5.0.40, the framework's origin validation mechanism is flawed due to the use of the startsWith() method to verify if the Referer header matches any allowed origin. This method only checks if the Referer begins with an allowed origin string, which is insufficient because an attacker can register a malicious domain that prefixes the allowed origin string (for example, https://target.com.attacker.com). This bypasses the origin validation check, allowing the attacker to initiate OAuth authentication flows from unauthorized origins. While tokens are still redirected to configured origins, in certain scenarios this flaw enables attackers to exfiltrate OAuth tokens, resulting in full account takeover. The vulnerability is categorized under CWE-346 (Origin Validation Error) and has a CVSS 4.0 score of 7.6, indicating high severity. Exploitation requires user interaction but no privileges or authentication. The issue was publicly disclosed and fixed in Feathersjs version 5.0.40. No known exploits are currently reported in the wild.
Potential Impact
This vulnerability poses a significant risk to organizations using Feathersjs versions below 5.0.40, especially those implementing OAuth authentication flows. Successful exploitation can lead to unauthorized token exfiltration and full account takeover, compromising user accounts and potentially exposing sensitive data. The flaw undermines the integrity of origin validation, a critical security control in web authentication. Organizations relying on Feathersjs for API and real-time application development may face data breaches, unauthorized access, and reputational damage. The attack requires user interaction but no prior authentication, broadening the scope of potential victims. Given Feathersjs's adoption in various industries, the impact could be widespread, affecting both enterprise and consumer-facing applications.
Mitigation Recommendations
The primary mitigation is to upgrade Feathersjs to version 5.0.40 or later, where the origin validation logic has been corrected. Until upgrading is possible, organizations should implement stricter origin validation mechanisms that do not rely on prefix matching, such as exact string comparison or using standardized libraries for origin checks. Reviewing and restricting OAuth redirect URIs and origins to trusted domains is critical. Additionally, monitoring OAuth flows for anomalous origin headers and implementing multi-factor authentication can reduce risk. Developers should audit their applications for similar origin validation patterns and avoid using startsWith() or similar prefix-based checks for security-critical validations. Security teams should also educate users about phishing risks that could trigger malicious OAuth flows.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-18T19:47:02.154Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69992e44be58cf853b3dccd0
Added to database: 2/21/2026, 4:02:12 AM
Last enriched: 2/21/2026, 4:16:27 AM
Last updated: 2/21/2026, 7:00:12 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-27471: CWE-862: Missing Authorization in frappe erpnext
CriticalCVE-2026-2863: Path Traversal in feng_ha_ha ssm-erp
MediumCVE-2026-2861: Information Disclosure in Foswiki
MediumCVE-2026-27212: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in nolimits4web swiper
CriticalCVE-2026-26047: Uncontrolled Resource Consumption
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.