CVE-2026-27191: @feathersjs/authentication oauth Feathers Has An Open Redirect Vulnerability

HIGH
Advisory Identifier: GHSA-ppf9-4ffw-hh4p
CWE-601
Published
Advisory Summary

CVE-2026-27191 is a HIGH feathers has an open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting @feathersjs/authentication oauth libraries in the npm ecosystem. The issue involves feathers has an open redirect in oauth callback enables account takeover. Remediation is available by upgrading affected packages to version 5.0.40.

CVE-2026-27191 at a Glance

CVE Identifier CVE-2026-27191
GHSA Identifier GHSA-ppf9-4ffw-hh4p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product @feathersjs/authentication oauth
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-27191

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-27191, 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. 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

### Description The `redirect` query parameter is appended to the base origin without validation, allowing attackers to steal access tokens via URL authority injection. This leads to full account takeover, as the attacker obtains the victim's access token and can impersonate them. The application constructs the final redirect URL by concatenating the base origin with the user-supplied `redirect` parameter: ```javascript // https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/service.ts#L158C3-L176C4 const { redirect } = query; ... session.redirect = redirect; // https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/strategy.ts#L98 const redirectUrl = `${redirect}${queryRedirect}`; ``` Where: - `redirect` = base origin from config (e.g., `https://target.com`) - `queryRedirect` = user input from `?redirect=` parameter This is exploitable when the `origins` array is configured and origin values do not end with `/`. An attacker can supply `@attacker.com` as the redirect value results in `https://target.com@attacker.com#access_token=...`, where the browser interprets `attacker.com` as the host, leading to full account takeover. **Credits**: Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.

CVE-2026-27191 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-27191?
CVE-2026-27191 is a security vulnerability in @feathersjs/authentication oauth involving Feathers has an open redirect in OAuth callback enables account takeover under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
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-27191?
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-27191?
CVE-2026-27191 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for CVE-2026-27191?
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-ppf9-4ffw-hh4p",
  "modified" : "2026-02-23T22:26:31Z",
  "published" : "2026-02-19T20:32:15Z",
  "aliases" : [ "CVE-2026-27191" ],
  "summary" : "Feathers has an open redirect in OAuth callback enables account takeover",
  "details" : "### Description\n\nThe `redirect` query parameter is appended to the base origin without validation, allowing attackers to steal access tokens via URL authority injection. This leads to full account takeover, as the attacker obtains the victim's access token and can impersonate them.\n\nThe application constructs the final redirect URL by concatenating the base origin with the user-supplied `redirect` parameter:\n```javascript\n// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/service.ts#L158C3-L176C4\nconst { redirect } = query;\n...\nsession.redirect = redirect;\n\n// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/strategy.ts#L98\nconst redirectUrl = `${redirect}${queryRedirect}`;\n```\n\nWhere:\n- `redirect` = base origin from config (e.g., `https://target.com`)\n- `queryRedirect` = user input from `?redirect=` parameter\n\nThis is exploitable when the `origins` array is configured and origin values do not end with `/`.  An attacker can supply `@attacker.com` as the redirect value results in `https://target.com@attacker.com#access_token=...`, where the browser interprets `attacker.com` as the host, leading to 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:P/PR:N/UI:A/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-ppf9-4ffw-hh4p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27191"
  }, {
    "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-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T20:32:15Z",
    "nvd_published_at" : "2026-02-21T04:15:58Z"
  }
}