CVE-2026-40305: DNN Remote Code Execution Vulnerability
MODERATECVE-2026-40305 is a MODERATE (CVSS 4.3) remote code execution vulnerability (CWE-285: Improper Authorization) affecting DNN libraries in the NuGet ecosystem. The issue involves force friend request acceptance. Remediation is available by upgrading affected packages to version 10.2.2.
CVE-2026-40305 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-40305
To remediate this vulnerability, upgrade all affected DNN dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade DotNetNuke.Core to 10.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for DotNetNuke.Core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-40305, inspect your project dependencies for DNN:
inspect dependencies for DotNetNuke.Core
Analyze the terminal output to locate any version of DNN in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.2.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In DNN, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40305 Affected DNN Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
DotNetNuke.Core
|
NuGet |
≥ 6.0.0
< 10.2.2
|
10.2.2
|
References
Frequently Asked Questions
What is CVE-2026-40305?
Which DNN versions are affected?
What version fixes CVE-2026-40305?
Is DotNetNuke.Core affected?
What is the CVSS score of CVE-2026-40305?
What CWE is associated with CVE-2026-40305?
How can I check NuGet dependencies for CVE-2026-40305?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fpj4-9qhx-5m6m",
"modified" : "2026-04-24T20:50:00Z",
"published" : "2026-04-10T21:07:08Z",
"aliases" : [ "CVE-2026-40305" ],
"summary" : "DNN: Force Friend Request Acceptance",
"details" : "DNN (formerly DotNetNuke) is an open-source web content management platform (CMS) in the Microsoft ecosystem. Starting in version 6.0.0 and prior to version 10.2.2, in the friends feature, a user could craft a request that would force the acceptance of a friend request on another user. Version 10.2.2 patches the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "DotNetNuke.Core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "10.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dnnsoftware/Dnn.Platform/security/advisories/GHSA-fpj4-9qhx-5m6m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40305"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dnnsoftware/Dnn.Platform"
}, {
"type" : "WEB",
"url" : "https://github.com/dnnsoftware/Dnn.Platform/releases/tag/v10.2.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-10T21:07:08Z",
"nvd_published_at" : "2026-04-17T22:16:32Z"
}
}