Lookup for vulnerable packages by Package URL.

Purlpkg:npm/next-auth@4.20.1
Typenpm
Namespace
Namenext-auth
Version4.20.1
Qualifiers
Subpath
Is_vulnerablefalse
Next_non_vulnerable_version4.24.5
Latest_non_vulnerable_version5.0.0-beta.30
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-3mbu-vdqr-5yaz
vulnerability_id VCID-3mbu-vdqr-5yaz
summary
Session Fixation
NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim's network or who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to **log in as the victim**, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. This issue has been addressed in version 4.20.1. Users are advised to upgrade. Users unable to upgrade may using Advanced Initialization, manually check the callback request for state, pkce, and nonce against the provider configuration to prevent this issue. See the linked GHSA for details.
references
0
reference_url https://authjs.dev/reference/core/providers#checks
reference_id
reference_type
scores
url https://authjs.dev/reference/core/providers#checks
1
reference_url https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
reference_id
reference_type
scores
url https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
2
reference_url https://github.com/nextauthjs/next-auth/compare/next-auth@4.20.0...next-auth@4.20.1#diff-cf9257195d0cb6a835ae4ff1fc73fe2cac0bab847efb0832c1f551209a972b47R55
reference_id
reference_type
scores
url https://github.com/nextauthjs/next-auth/compare/next-auth@4.20.0...next-auth@4.20.1#diff-cf9257195d0cb6a835ae4ff1fc73fe2cac0bab847efb0832c1f551209a972b47R55
3
reference_url https://next-auth.js.org/configuration/initialization#advanced-initialization
reference_id
reference_type
scores
url https://next-auth.js.org/configuration/initialization#advanced-initialization
4
reference_url https://next-auth.js.org/configuration/providers/oauth
reference_id
reference_type
scores
url https://next-auth.js.org/configuration/providers/oauth
5
reference_url https://www.rfc-editor.org/rfc/rfc6749#section-10.12
reference_id
reference_type
scores
url https://www.rfc-editor.org/rfc/rfc6749#section-10.12
6
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-27490
reference_id CVE-2023-27490
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-27490
7
reference_url https://github.com/advisories/GHSA-7r7x-4c4q-c4qf
reference_id GHSA-7r7x-4c4q-c4qf
reference_type
scores
url https://github.com/advisories/GHSA-7r7x-4c4q-c4qf
8
reference_url https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
reference_id GHSA-7r7x-4c4q-c4qf
reference_type
scores
url https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
fixed_packages
0
url pkg:npm/next-auth@4.20.1
purl pkg:npm/next-auth@4.20.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/next-auth@4.20.1
aliases CVE-2023-27490, GHSA-7r7x-4c4q-c4qf
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-3mbu-vdqr-5yaz
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/next-auth@4.20.1