CVE-2026-27192: @feathersjs/authentication oauth Feathers Has An Origin Validation Vulnerability

HIGH
Advisory Identifier: GHSA-mp4x-c34x-wv3x
CWE-346
Published
Advisory Summary

CVE-2026-27192 is a HIGH feathers has an origin validation vulnerability (CWE-346: Origin Validation Error) affecting @feathersjs/authentication oauth libraries in the npm ecosystem. The issue involves feathers has an origin validation bypass via prefix matching. Remediation is available by upgrading affected packages to version 5.0.40.

CVE-2026-27192 at a Glance

CVE Identifier CVE-2026-27192
GHSA Identifier GHSA-mp4x-c34x-wv3x
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-346: Origin Validation Error
Affected Product @feathersjs/authentication oauth
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-27192

To remediate this vulnerability, upgrade all affected @feathersjs/authentication oauth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@feathersjs/authentication-oauth fixed: 5.0.40
npm install @feathersjs/authentication-oauth@5.0.40
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @feathersjs/authentication-oauth

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-27192, inspect your project dependencies using npm:

npm ls @feathersjs/authentication-oauth

Analyze the terminal output to locate any version of @feathersjs/authentication oauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.40), your application is affected.

Note: The npm ls @feathersjs/authentication-oauth command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-346: Origin Validation Error, where the product does not properly verify that the source of data or communication is valid. In @feathersjs/authentication oauth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The 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: ```javascript // https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/strategy.ts#L75 const allowedOrigin = origins.find((current) => referer.toLowerCase().startsWith(current.toLowerCase())); ``` 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. **Credits**: Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.

CVE-2026-27192 Affected @feathersjs/authentication oauth Versions

1 component(s)
Fixed Versions:
5.0.40
Product / Package Ecosystem Affected Versions Fixed Version
@feathersjs/authentication-oauth
npm
< 5.0.40
5.0.40

References

Frequently Asked Questions

What is CVE-2026-27192?
CVE-2026-27192 is a security vulnerability in @feathersjs/authentication oauth involving Feathers has an origin validation bypass via prefix matching under CWE-346: Origin Validation Error.
Which @feathersjs/authentication oauth versions are affected?
Affected versions include releases prior to 5.0.40 across affected packages: @feathersjs/authentication-oauth.
What version fixes CVE-2026-27192?
Upgrading to 5.0.40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @feathersjs/authentication-oauth affected?
Yes, @feathersjs/authentication-oauth is affected in releases prior to 5.0.40. Upgrade your dependency to 5.0.40 or later.
What CWE is associated with CVE-2026-27192?
CVE-2026-27192 is classified under CWE-346: Origin Validation Error (The product does not properly verify that the source of data or communication is valid.).
How can I check npm dependencies for CVE-2026-27192?
Run the dependency tree command: 'npm ls @feathersjs/authentication-oauth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mp4x-c34x-wv3x",
  "modified" : "2026-02-23T22:26:40Z",
  "published" : "2026-02-19T20:32:28Z",
  "aliases" : [ "CVE-2026-27192" ],
  "summary" : "Feathers has an origin validation bypass via prefix matching",
  "details" : "The 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.\n\nThe `getAllowedOrigin()` function checks if the Referer header starts with any allowed origin:\n```javascript\n// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/strategy.ts#L75\nconst allowedOrigin = origins.find((current) => referer.toLowerCase().startsWith(current.toLowerCase()));\n```\n\nThis 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`).\n\nOn 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.\n\n**Credits**:  Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@feathersjs/authentication-oauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.40"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.0.39"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/feathersjs/feathers/security/advisories/GHSA-mp4x-c34x-wv3x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27192"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/feathersjs/feathers"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/feathersjs/feathers/releases/tag/v5.0.40"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-346" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T20:32:28Z",
    "nvd_published_at" : "2026-02-21T04:15:58Z"
  }
}