Is Moq 4.0 vulnerable?

NuGet · 1 release from 4.0.10827 to 4.0.10827 · latest Moq is 4.21.0 · checked 18 Nov 2026

No known advisories in the last release

No. No Moq 4.0.x release has a known security advisory.

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

Which of your client projects are still on Moq 4.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact Moq version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other Moq versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the NuGet registry. Refreshed daily.