Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/18866?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/18866?format=api", "vulnerability_id": "VCID-2815-seu2-93fk", "summary": "Possible user mocking that bypasses basic authentication\nNextAuth.js provides authentication for Next.js. `next-auth` applications prior to version 4.24.5 that rely on the default Middleware authorization are affected by a vulnerability. A bad actor could create an empty/mock user, by getting hold of a NextAuth.js-issued JWT from an interrupted OAuth sign-in flow (state, PKCE or nonce). Manually overriding the `next-auth.session-token` cookie value with this non-related JWT would let the user simulate a logged in user, albeit having no user information associated with it. (The only property on this user is an opaque randomly generated string). This vulnerability does not give access to other users' data, neither to resources that require proper authorization via scopes or other means. The created mock user has no information associated with it (ie. no name, email, access_token, etc.) This vulnerability can be exploited by bad actors to peek at logged in user states (e.g. dashboard layout). `next-auth` `v4.24.5` contains a patch for the vulnerability. As a workaround, using a custom authorization callback for Middleware, developers can manually do a basic authentication.", "aliases": [ { "alias": "CVE-2023-48309" }, { "alias": "GHSA-v64w-49xw-qq89" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/66624?format=api", "purl": "pkg:npm/next-auth@4.24.5", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/next-auth@4.24.5" } ], "affected_packages": [], "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2023-48309", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00295", "scoring_system": "epss", "scoring_elements": "0.53027", "published_at": "2026-05-30T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-48309" }, { "reference_url": "https://authjs.dev/guides/basics/role-based-access-control", "reference_id": "", "reference_type": "", "scores": [], "url": "https://authjs.dev/guides/basics/role-based-access-control" }, { "reference_url": "https://github.com/nextauthjs/next-auth/commit/d237059b6d0cb868c041ba18b698e0cee20a2f10", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/nextauthjs/next-auth/commit/d237059b6d0cb868c041ba18b698e0cee20a2f10" }, { "reference_url": "https://next-auth.js.org/configuration/nextjs#advanced-usage", "reference_id": "", "reference_type": "", "scores": [], "url": "https://next-auth.js.org/configuration/nextjs#advanced-usage" }, { "reference_url": "https://next-auth.js.org/configuration/nextjs#middlewar", "reference_id": "", "reference_type": "", "scores": [], "url": "https://next-auth.js.org/configuration/nextjs#middlewar" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-48309", "reference_id": "CVE-2023-48309", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-48309" }, { "reference_url": "https://github.com/advisories/GHSA-v64w-49xw-qq89", "reference_id": "GHSA-v64w-49xw-qq89", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-v64w-49xw-qq89" }, { "reference_url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-v64w-49xw-qq89", "reference_id": "GHSA-v64w-49xw-qq89", "reference_type": "", "scores": [], "url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-v64w-49xw-qq89" } ], "weaknesses": [ { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." }, { "cwe_id": 285, "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." } ], "exploits": [], "severity_range_score": null, "exploitability": null, "weighted_severity": null, "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2815-seu2-93fk" }