Lookup for vulnerable packages by Package URL.

Purlpkg:npm/%40feathersjs/authentication-oauth@5.0.40
Typenpm
Namespace@feathersjs
Nameauthentication-oauth
Version5.0.40
Qualifiers
Subpath
Is_vulnerablefalse
Next_non_vulnerable_version5.0.42
Latest_non_vulnerable_version5.0.42
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-atvx-pz7x-zkak
vulnerability_id VCID-atvx-pz7x-zkak
summary
Feathers has an open redirect in OAuth callback enables account takeover
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.
references
0
reference_url https://github.com/feathersjs/feathers
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers
1
reference_url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
2
reference_url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-27191
reference_id CVE-2026-27191
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2026-27191
4
reference_url https://github.com/advisories/GHSA-ppf9-4ffw-hh4p
reference_id GHSA-ppf9-4ffw-hh4p
reference_type
scores
url https://github.com/advisories/GHSA-ppf9-4ffw-hh4p
5
reference_url https://github.com/feathersjs/feathers/security/advisories/GHSA-ppf9-4ffw-hh4p
reference_id GHSA-ppf9-4ffw-hh4p
reference_type
scores
url https://github.com/feathersjs/feathers/security/advisories/GHSA-ppf9-4ffw-hh4p
fixed_packages
0
url pkg:npm/%40feathersjs/authentication-oauth@5.0.40
purl pkg:npm/%40feathersjs/authentication-oauth@5.0.40
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540feathersjs/authentication-oauth@5.0.40
aliases CVE-2026-27191, GHSA-ppf9-4ffw-hh4p
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-atvx-pz7x-zkak
1
url VCID-bffn-qsdh-53gx
vulnerability_id VCID-bffn-qsdh-53gx
summary
Feathers exposes internal headers via unencrypted session cookie
All HTTP request headers are stored in the session cookie, which is signed but not encrypted, exposing internal proxy/gateway headers to clients.

The OAuth service stores the complete headers object in the session:
```javascript
// https://github.com/feathersjs/feathers/blob/dove/packages/authentication-oauth/src/service.ts#L173
session.headers = headers;
```

The session is persisted using `cookie-session`, which base64-encodes the data. While the cookie is signed to prevent tampering, the contents are readable by anyone by simply decoding the base64 value.

Under specific deployment configurations (e.g., behind reverse proxies or API gateways), this can lead to exposure of sensitive internal infrastructure details such as API keys, service tokens, and internal IP addresses.

**Credits**:  Abdelwahed Madani Yousfi (@vvxhid) / Edoardo Geraci (@b0-n0-b0) / Thomas Rinsma (@ThomasRinsma) From Codean Labs.
references
0
reference_url https://github.com/feathersjs/feathers
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers
1
reference_url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
2
reference_url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-27193
reference_id CVE-2026-27193
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2026-27193
4
reference_url https://github.com/advisories/GHSA-9m9c-vpv5-9g85
reference_id GHSA-9m9c-vpv5-9g85
reference_type
scores
url https://github.com/advisories/GHSA-9m9c-vpv5-9g85
5
reference_url https://github.com/feathersjs/feathers/security/advisories/GHSA-9m9c-vpv5-9g85
reference_id GHSA-9m9c-vpv5-9g85
reference_type
scores
url https://github.com/feathersjs/feathers/security/advisories/GHSA-9m9c-vpv5-9g85
fixed_packages
0
url pkg:npm/%40feathersjs/authentication-oauth@5.0.40
purl pkg:npm/%40feathersjs/authentication-oauth@5.0.40
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540feathersjs/authentication-oauth@5.0.40
aliases CVE-2026-27193, GHSA-9m9c-vpv5-9g85
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-bffn-qsdh-53gx
2
url VCID-k776-tjp4-fbeq
vulnerability_id VCID-k776-tjp4-fbeq
summary
Feathers has an origin validation bypass via prefix matching
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.
references
0
reference_url https://github.com/feathersjs/feathers
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers
1
reference_url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/commit/ee19a0ae9bc2ebf23b1fe598a1f7361981b65401
2
reference_url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
reference_id
reference_type
scores
url https://github.com/feathersjs/feathers/releases/tag/v5.0.40
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-27192
reference_id CVE-2026-27192
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2026-27192
4
reference_url https://github.com/advisories/GHSA-mp4x-c34x-wv3x
reference_id GHSA-mp4x-c34x-wv3x
reference_type
scores
url https://github.com/advisories/GHSA-mp4x-c34x-wv3x
5
reference_url https://github.com/feathersjs/feathers/security/advisories/GHSA-mp4x-c34x-wv3x
reference_id GHSA-mp4x-c34x-wv3x
reference_type
scores
url https://github.com/feathersjs/feathers/security/advisories/GHSA-mp4x-c34x-wv3x
fixed_packages
0
url pkg:npm/%40feathersjs/authentication-oauth@5.0.40
purl pkg:npm/%40feathersjs/authentication-oauth@5.0.40
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540feathersjs/authentication-oauth@5.0.40
aliases CVE-2026-27192, GHSA-mp4x-c34x-wv3x
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-k776-tjp4-fbeq
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/%2540feathersjs/authentication-oauth@5.0.40