Moq vulnerabilities

Moq is the most popular and friendly mocking framework for .NET.

Registry
NuGet
Latest
4.21.0
License
BSD-3-Clause

1 known advisory

The latest version, 4.21.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:dotnet add package Moq --version 4.21.0

Is your project on an affected Moq?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for Moq

  • LowGHSA-6r78-m64m-qwcf10 Aug 2023

    Moq v4.20.0-rc to 4.20.1 share hashed user data

    Affected
    >=4.20.0-rc <4.20.2
    Fixed in
    4.20.2

Is your Moq version vulnerable?

Which of your client projects still run an old Moq?

NPMscan reads the packages.lock.json and .csproj files in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other NuGet packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the NuGet registry.