{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-27490",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-03-01T19:03:56.634Z",
        "datePublished": "2023-03-09T20:37:11.407Z",
        "dateUpdated": "2025-02-25T14:59:02.632Z"
    },
    "containers": {
        "cna": {
            "title": "Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-384",
                            "lang": "en",
                            "description": "CWE-384: Session Fixation",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-352",
                            "lang": "en",
                            "description": "CWE-352: Cross-Site Request Forgery (CSRF)",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "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/"
                }
            ],
            "affected": [
                {
                    "vendor": "nextauthjs",
                    "product": "next-auth",
                    "versions": [
                        {
                            "version": "< 4.20.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-04-20T08:06:22.818Z"
            },
            "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'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."
                }
            ],
            "source": {
                "advisory": "GHSA-7r7x-4c4q-c4qf",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T12:16:35.318Z"
                },
                "title": "CVE Program Container",
                "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"
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20230420-0006/",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-02-25T14:29:38.244440Z",
                                "id": "CVE-2023-27490",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-25T14:59:02.632Z"
                }
            }
        ]
    }
}