CVE-2026-27191: Feathers has an open redirect in OAuth callback enables account takeover
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.
Published Feb 19, 2026 · Updated Feb 23, 2026
Affected packages
@feathersjs/authentication-oauth
- Ecosystem
- npm
- Affected
- <= 5.0.39
- Fixed in
- 5.0.40
- Check
npm ls @feathersjs/authentication-oauth
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
// 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://[email protected]#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.
Credited to vvxhid, b0-n0-b0.
References
- https://github.com/feathersjs/feathers/security/advisories/GHSA-ppf9-4ffw-hh4p
- https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
- https://github.com/feathersjs/feathers/releases/tag/v5.0.40
- https://nvd.nist.gov/vuln/detail/CVE-2026-27191
- https://github.com/advisories/GHSA-ppf9-4ffw-hh4p
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
