Vulnerabilities in pkg:nuget/moq
PACKAGEGHSA-6r78-m64m-qwcf is a LOW moq v4.20.0-rc to 4.20.1 share vulnerability (General Security Weakness) affecting Moq libraries in the NuGet ecosystem. The issue involves moq v4.20.0-rc to 4.20.1 share hashed user data. Remediation is available by upgrading affected packages to version 4.20.2.
pkg:nuget/moq
Vulnerability advisories affecting package pkg:nuget/moq. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6r78-m64m-qwcf | - | LOW | Moq v4.20.0-rc to 4.20.1 share hashed user data |
GHSA-6r78-m64m-qwcf at a Glance
How to Fix GHSA-6r78-m64m-qwcf
To remediate this vulnerability, upgrade all affected Moq 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 moq to 4.20.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moq
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6r78-m64m-qwcf, inspect your project dependencies for Moq:
inspect dependencies for moq
Analyze the terminal output to locate any version of Moq in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.20.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 General Security Weakness. In Moq, 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
GHSA-6r78-m64m-qwcf Affected Moq Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moq
|
NuGet |
≥ 4.20.0-rc
< 4.20.2
|
4.20.2
|
References
Frequently Asked Questions
What is GHSA-6r78-m64m-qwcf?
Which Moq versions are affected?
What version fixes GHSA-6r78-m64m-qwcf?
Is moq affected?
What CWE is associated with GHSA-6r78-m64m-qwcf?
How can I check NuGet dependencies for GHSA-6r78-m64m-qwcf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6r78-m64m-qwcf",
"modified" : "2023-08-25T18:58:25Z",
"published" : "2023-08-10T19:25:23Z",
"aliases" : [ ],
"summary" : "Moq v4.20.0-rc to 4.20.1 share hashed user data",
"details" : "Moq v4.20.0-rc to 4.20.1 include support for [SponsorLink](https://github.com/devlooped/SponsorLink), which runs an obfuscated DLL at build time that scans local `git config` data and shares the user's hashed email address with SponsorLink's remote servers. There is no option to disable this.\n\nMoq v4.20.2 has removed this functionality.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "moq"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.20.0-rc"
}, {
"fixed" : "4.20.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/moq/moq/issues/1374"
}, {
"type" : "WEB",
"url" : "https://github.com/moq/moq/pull/1363"
}, {
"type" : "WEB",
"url" : "https://github.com/moq/moq/pull/1375"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moq/moq"
}, {
"type" : "WEB",
"url" : "https://www.cazzulino.com/sponsorlink.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-10T19:25:23Z",
"nvd_published_at" : null
}
}