{"id":"CVE-2024-51479","aliases":["GHSA-7gfc-8cq8-jh5f"],"summary":"Authorization bypass in Next.js","published_at":"2024-12-17T15:09:06Z","modified_at":"2026-07-03T10:34:49Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.03994999825954437,"percentile":0.9073899984359741,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:9","package":"aspnetcore-runtime-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"aspnetcore-targeting-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-apphost-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-host","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-hostfxr-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-runtime-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-sdk-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-sdk-7.0-source-built-artifacts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-targeting-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-templates-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"netstandard-targeting-pack-2.1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"vercel/next.js","versions":[">= 9.5.5, < 14.2.15"],"provider":"cvelistv5","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"NVD","package":"vercel:next.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.5.5"},{"fixed":"14.2.15"}]}],"fixed":["14.2.15"],"provider":"nvd","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"npm","package":"next","purl":"pkg:npm/next","ranges":[{"type":"SEMVER","events":[{"introduced":"9.5.5"},{"fixed":"14.2.15"}]}],"fixed":["14.2.15"],"provider":"osv","source":"GHSA-7gfc-8cq8-jh5f","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","thunderbird"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["aspnetcore-runtime-7.0","aspnetcore-targeting-pack-7.0","dotnet-apphost-pack-7.0","dotnet-host","dotnet-hostfxr-7.0","dotnet-runtime-7.0","dotnet-sdk-7.0","dotnet-sdk-7.0-source-built-artifacts","dotnet-targeting-pack-7.0","dotnet-templates-7.0","dotnet7.0","netstandard-targeting-pack-2.1"],"package_count":12,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["firefox","firefox-x11","thunderbird"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer 1.1","cpe":"cpe:/a:redhat:trusted_artifact_signer:1.1::el9","status":"fixed","packages":["rhtas"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:3807"],"provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"affected","packages":["com.github.streamshub-console"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-51479"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2024-51479","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-51479","license":"CC-BY-4.0","published_at":"2024-12-17T18:13:02.806Z","modified_at":"2024-12-17T20:36:28.402Z","summary":"Authorization bypass in Next.js","details":"Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-51479"}],"affected":[{"ecosystem":"CVE","package":"vercel/next.js","versions":[">= 9.5.5, < 14.2.15"],"provider":"cvelistv5","source":"CVE-2024-51479","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v14.2.15"}]},{"provider":"nvd","source_id":"CVE-2024-51479","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51479","severity":[],"affected":[{"ecosystem":"NVD","package":"vercel:next.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.5.5"},{"fixed":"14.2.15"}]}],"fixed":["14.2.15"],"provider":"nvd","source":"CVE-2024-51479","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-7gfc-8cq8-jh5f","relation":"self","url":"https://osv.dev/vulnerability/GHSA-7gfc-8cq8-jh5f","license":"CC-BY-4.0","published_at":"2024-12-17T15:09:06Z","modified_at":"2025-09-10T21:12:24Z","summary":"Next.js authorization bypass vulnerability","details":"### Impact\nIf a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed.\n\n### Patches\nThis issue was patched in Next.js `14.2.15` and later.\n\nIf your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version.\n\n### Workarounds\nThere are no official workarounds for this vulnerability.\n\n#### Credits\nWe'd like to thank [tyage](http://github.com/tyage) (GMO CyberSecurity by IERAE) for responsible disclosure of this issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-7gfc-8cq8-jh5f"}],"affected":[{"ecosystem":"npm","package":"next","purl":"pkg:npm/next","ranges":[{"type":"SEMVER","events":[{"introduced":"9.5.5"},{"fixed":"14.2.15"}]}],"fixed":["14.2.15"],"provider":"osv","source":"GHSA-7gfc-8cq8-jh5f","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51479"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b"},{"type":"PACKAGE","url":"https://github.com/vercel/next.js"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v14.2.15"}]},{"provider":"redhat-vex","source_id":"CVE-2024-51479","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-51479","license":"CC-BY-4.0","published_at":"2024-12-17T18:13:02.806Z","modified_at":"2026-07-03T10:34:49Z","summary":"next.js: next: authorization bypass in Next.js","details":"A flaw was found in the Next.js framework. An incorrectly sanitized query parameter can cause an invalid routing condition, resulting in the wrong route being served to users and allowing authorization bypass when an application is performing path-based middleware authorization.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-51479"},{"type":"Red Hat","score":"Moderate","source":"CVE-2024-51479"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:9","package":"aspnetcore-runtime-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"aspnetcore-targeting-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-apphost-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-host","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-hostfxr-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-runtime-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-sdk-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-sdk-7.0-source-built-artifacts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-targeting-pack-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet-templates-7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"dotnet7.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"netstandard-targeting-pack-2.1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-51479","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","thunderbird"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["aspnetcore-runtime-7.0","aspnetcore-targeting-pack-7.0","dotnet-apphost-pack-7.0","dotnet-host","dotnet-hostfxr-7.0","dotnet-runtime-7.0","dotnet-sdk-7.0","dotnet-sdk-7.0-source-built-artifacts","dotnet-targeting-pack-7.0","dotnet-templates-7.0","dotnet7.0","netstandard-targeting-pack-2.1"],"package_count":12,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["firefox","firefox-x11","thunderbird"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer 1.1","cpe":"cpe:/a:redhat:trusted_artifact_signer:1.1::el9","status":"fixed","packages":["rhtas"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:3807"],"provider":"redhat-vex","source":"CVE-2024-51479"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"affected","packages":["com.github.streamshub-console"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-51479"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-51479.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-51479"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2332884"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-51479"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51479"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v14.2.15"},{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f"}]}],"references":[{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v14.2.15"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51479"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b"},{"type":"PACKAGE","url":"https://github.com/vercel/next.js"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-51479.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-51479"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2332884"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-51479"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2024-51479","url":"https://www.cve.org/CVERecord?id=CVE-2024-51479","license":"CC-BY-4.0","modified_at":"2024-12-17T20:36:28.402Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-51479","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51479","relation":"self"},{"provider":"osv","source_id":"GHSA-7gfc-8cq8-jh5f","url":"https://osv.dev/vulnerability/GHSA-7gfc-8cq8-jh5f","license":"CC-BY-4.0","modified_at":"2025-09-10T21:12:24Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-51479","url":"https://access.redhat.com/security/cve/CVE-2024-51479","license":"CC-BY-4.0","modified_at":"2026-07-03T10:34:49Z","relation":"self"}]}
