CVE-2026-40305: DNN Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-fpj4-9qhx-5m6m
CVSS 4.3
CWE-285
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-40305
GHSA Identifier GHSA-fpj4-9qhx-5m6m
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-285: Improper Authorization
Affected Product DNN
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

DotNetNuke.Core fixed: 10.2.2
Upgrade DotNetNuke.Core to 10.2.2
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-40305 Affected DNN Versions

1 component(s)
Fixed Versions:
10.2.2
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?
CVE-2026-40305 is a security vulnerability in DNN involving Force Friend Request Acceptance under CWE-285: Improper Authorization.
Which DNN versions are affected?
Affected versions include releases prior to 10.2.2 across affected packages: DotNetNuke.Core.
What version fixes CVE-2026-40305?
Upgrading to 10.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is DotNetNuke.Core affected?
Yes, DotNetNuke.Core is affected in releases prior to 10.2.2. Upgrade your dependency to 10.2.2 or later.
What is the CVSS score of CVE-2026-40305?
CVE-2026-40305 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-40305?
CVE-2026-40305 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check NuGet dependencies for CVE-2026-40305?
Run the dependency tree command: 'inspect dependencies for DotNetNuke.Core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}