Feathers: Open Redirect in OAuth callback enables account takeover
Description
Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. Versions 5.0.39 and below 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. 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. This issue has been fixed in version 5.0.40.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@feathersjs/authentication-oauthnpm | < 5.0.40 | 5.0.40 |
Affected products
2- Range: < 5.0.40
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-ppf9-4ffw-hh4pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27191ghsaADVISORY
- github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401ghsax_refsource_MISCWEB
- github.com/feathersjs/feathers/releases/tag/v5.0.40ghsax_refsource_MISCWEB
- github.com/feathersjs/feathers/security/advisories/GHSA-ppf9-4ffw-hh4pghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.