CVE-2023-27490 (GCVE-0-2023-27490)
Vulnerability from cvelistv5
Published
2023-03-09 20:37
Modified
2025-02-25 14:59
Severity ?
VLAI Severity ?
EPSS score ?
Summary
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
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
nextauthjs | next-auth |
Version: < 4.20.1 |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T12:16:35.318Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf" }, { "name": "https://authjs.dev/reference/core/providers#checks", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://authjs.dev/reference/core/providers#checks" }, { "name": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/" }, { "name": "https://next-auth.js.org/configuration/initialization#advanced-initialization", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://next-auth.js.org/configuration/initialization#advanced-initialization" }, { "name": "https://next-auth.js.org/configuration/providers/oauth", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://next-auth.js.org/configuration/providers/oauth" }, { "name": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12" }, { "tags": [ "x_transferred" ], "url": "https://security.netapp.com/advisory/ntap-20230420-0006/" } ], "title": "CVE Program Container" }, { "metrics": [ { "other": { "content": { "id": "CVE-2023-27490", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "timestamp": "2025-02-25T14:29:38.244440Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2025-02-25T14:59:02.632Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "next-auth", "vendor": "nextauthjs", "versions": [ { "status": "affected", "version": "\u003c 4.20.1" } ] } ], "descriptions": [ { "lang": "en", "value": "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\u0027s 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." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 8.1, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-384", "description": "CWE-384: Session Fixation", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-352", "description": "CWE-352: Cross-Site Request Forgery (CSRF)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-04-20T08:06:22.818Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf" }, { "name": "https://authjs.dev/reference/core/providers#checks", "tags": [ "x_refsource_MISC" ], "url": "https://authjs.dev/reference/core/providers#checks" }, { "name": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/", "tags": [ "x_refsource_MISC" ], "url": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/" }, { "name": "https://next-auth.js.org/configuration/initialization#advanced-initialization", "tags": [ "x_refsource_MISC" ], "url": "https://next-auth.js.org/configuration/initialization#advanced-initialization" }, { "name": "https://next-auth.js.org/configuration/providers/oauth", "tags": [ "x_refsource_MISC" ], "url": "https://next-auth.js.org/configuration/providers/oauth" }, { "name": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12", "tags": [ "x_refsource_MISC" ], "url": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12" }, { "url": "https://security.netapp.com/advisory/ntap-20230420-0006/" } ], "source": { "advisory": "GHSA-7r7x-4c4q-c4qf", "discovery": "UNKNOWN" }, "title": "Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-27490", "datePublished": "2023-03-09T20:37:11.407Z", "dateReserved": "2023-03-01T19:03:56.634Z", "dateUpdated": "2025-02-25T14:59:02.632Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2023-27490\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2023-03-09T21:15:11.913\",\"lastModified\":\"2024-11-21T07:53:00.680\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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\u0027s 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.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N\",\"baseScore\":8.1,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":5.2},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-352\"},{\"lang\":\"en\",\"value\":\"CWE-384\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*\",\"versionEndExcluding\":\"4.20.1\",\"matchCriteriaId\":\"D58C0028-EA90-4BFA-BD7B-03775AE4FC42\"}]}]}],\"references\":[{\"url\":\"https://authjs.dev/reference/core/providers#checks\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\"]},{\"url\":\"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Not Applicable\"]},{\"url\":\"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Exploit\",\"Vendor Advisory\"]},{\"url\":\"https://next-auth.js.org/configuration/initialization#advanced-initialization\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\"]},{\"url\":\"https://next-auth.js.org/configuration/providers/oauth\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20230420-0006/\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Not Applicable\"]},{\"url\":\"https://authjs.dev/reference/core/providers#checks\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Not Applicable\"]},{\"url\":\"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Exploit\",\"Vendor Advisory\"]},{\"url\":\"https://next-auth.js.org/configuration/initialization#advanced-initialization\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://next-auth.js.org/configuration/providers/oauth\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20230420-0006/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Not Applicable\"]}]}}", "vulnrichment": { "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\", \"name\": \"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\", \"tags\": [\"x_refsource_CONFIRM\", \"x_transferred\"]}, {\"url\": \"https://authjs.dev/reference/core/providers#checks\", \"name\": \"https://authjs.dev/reference/core/providers#checks\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\", \"name\": \"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://next-auth.js.org/configuration/initialization#advanced-initialization\", \"name\": \"https://next-auth.js.org/configuration/initialization#advanced-initialization\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://next-auth.js.org/configuration/providers/oauth\", \"name\": \"https://next-auth.js.org/configuration/providers/oauth\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\", \"name\": \"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20230420-0006/\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T12:16:35.318Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-27490\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-25T14:29:38.244440Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-25T14:29:39.914Z\"}}], \"cna\": {\"title\": \"Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth\", \"source\": {\"advisory\": \"GHSA-7r7x-4c4q-c4qf\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 8.1, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"nextauthjs\", \"product\": \"next-auth\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 4.20.1\"}]}], \"references\": [{\"url\": \"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\", \"name\": \"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://authjs.dev/reference/core/providers#checks\", \"name\": \"https://authjs.dev/reference/core/providers#checks\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\", \"name\": \"https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://next-auth.js.org/configuration/initialization#advanced-initialization\", \"name\": \"https://next-auth.js.org/configuration/initialization#advanced-initialization\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://next-auth.js.org/configuration/providers/oauth\", \"name\": \"https://next-auth.js.org/configuration/providers/oauth\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\", \"name\": \"https://www.rfc-editor.org/rfc/rfc6749#section-10.12\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20230420-0006/\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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\u0027s 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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-384\", \"description\": \"CWE-384: Session Fixation\"}]}, {\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-352\", \"description\": \"CWE-352: Cross-Site Request Forgery (CSRF)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2023-04-20T08:06:22.818Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2023-27490\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-25T14:59:02.632Z\", \"dateReserved\": \"2023-03-01T19:03:56.634Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2023-03-09T20:37:11.407Z\", \"assignerShortName\": \"GitHub_M\"}", "dataType": "CVE_RECORD", "dataVersion": "5.1" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…