CVE-2021-41238
Missing Authorization with Default Settings in Dashboard UI
Also known as GHSA-7rq6-7gv8-c37h
Mitigation
- Upgrade Hangfire.Core to 1.7.26 or later.
Who should check
- Projects that depend on NuGet package Hangfire.Core (>= 1.7.25, < 1.7.26)
- Anyone running HangfireIO Hangfire = 1.7.25
Vulnerability facts
- Affected
- Hangfire.Core >= 1.7.25, < 1.7.26
- Fixed in
- 1.7.26
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.96% chance of exploitation in 30 days (percentile 60, 2026-11-26)
- CWE
- CWE-862
- Modified
Description
Hangfire is an open source system to perform background job processing in a .NET or .NET Core applications. No Windows Service or separate process required. Dashboard UI in Hangfire.Core uses authorization filters to protect it from showing sensitive data to unauthorized users. By default when no custom authorization filters specified, `LocalRequestsOnlyAuthorizationFilter` filter is being used to allow only local requests and prohibit all the remote requests to provide sensible, protected by default settings. However due to the recent changes, in version 1.7.25 no authorization filters are used by default, allowing remote requests to succeed. If you are using `UseHangfireDashboard` method with default `DashboardOptions.Authorization` property value, then your installation is impacted. If any other authorization filter is specified in the `DashboardOptions.Authorization` property, the you are not impacted. Patched versions (1.7.26) are available both on Nuget.org and as a tagged release on the github repo. Default authorization rules now prohibit remote requests by default again by including the `LocalRequestsOnlyAuthorizationFilter` filter to the default settings. Please upgrade to the newest version in order to mitigate the issue. For users who are unable to upgrade it is possible to mitigate the issue by using the `LocalRequestsOnlyAuthorizationFilter` explicitly when configuring the Dashboard UI.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| NuGet Hangfire.Core | >= 1.7.25, < 1.7.26 | 1.7.26 | osv |
| HangfireIO Hangfire | = 1.7.25 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-41238. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-41238.md Affected: Hangfire.Core >= 1.7.25, < 1.7.26 Fixed in: 1.7.26 Steps: 1. Search this machine and project for Hangfire.Core (NuGet), HangfireIO Hangfire: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2021-41238 being exploited?
There is no confirmed exploitation: CVE-2021-41238 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-41238?
High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2021-41238?
Hangfire.Core >= 1.7.25, < 1.7.26.
Is there a fix for CVE-2021-41238?
Yes. Fixed in 1.7.26. Upgrade Hangfire.Core to 1.7.26 or later.
How do I check if I'm affected by CVE-2021-41238?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.