ReSharper 2026.3 Help

Find vulnerable NuGet packages and APIs

ReSharper checks NuGet dependencies of your projects for known vulnerabilities. It highlights vulnerable package references and usages of methods that are known to be vulnerable. To determine vulnerabilities, ReSharper uses the list of advisories at Mend.io, each of which applies to a specific package and a specific version of that package.

The following code inspections report two types of problems:

インスペクション

What it highlights

条件

Vulnerable API usage (VulnerableApi)

References to methods that are identified as vulnerable

C# code, normally in .cs files

NuGet package is vulnerable (VulnerablePackage)

Package references with known vulnerabilities, including vulnerabilities in transitive dependencies

MSBuild files, such as .csproj files

A transitive dependency is a package that another package requires.

Package checks and API checks provide different information. A package can have a known vulnerability even if your code has no highlighted API references.

Find vulnerable APIs in C# code

The Vulnerable API usage inspection highlights references to methods that Mend.io identifies as vulnerable. By default, it uses the Warning severity level.

Review a vulnerable API usage

  1. Open a C# file in the editor.

  2. Hover over a highlighted method reference. The tooltip shows the vulnerability identifier, CVSS score, and title.

  3. To view the available actions, place the caret at the highlighted reference and press Alt+Enter. The actions can include the following:

    • [vulnerability] のアドバイザリを表示 opens the advisory in a browser.

    • [package] を最新バージョンに更新してみてください updates the affected NuGet package if package management is available.

    • A link to the vulnerability data provider.

The update action selects the latest version of the package. Read the advisory to check whether that version resolves the vulnerability.

Find vulnerable package references

The NuGet package is vulnerable inspection checks <PackageReference> declarations in MSBuild files. It reports vulnerabilities in the declared package and in its transitive dependencies. It also supports references whose versions come from central package management if ReSharper can resolve the installed version.

Review a vulnerable package reference

  1. Open a project file, such as a .csproj file.

  2. Hover over a highlighted package reference. The tooltip shows the affected package.

  3. To read the advisory or update the package, place the caret at the highlighted reference and press Alt+Enter.

For a transitive vulnerability, the update action targets the declared package that brings in the vulnerable dependency.

Configure vulnerability inspections

You can change the severity level of the Vulnerable API usage and NuGet package is vulnerable inspections or disable them on the コードインスペクション | インスペクション重大度 page of ReSharper オプション Alt+R、O . Use the search field on this page to find the inspections by name.

You can also configure the inspections in .editorconfig files. For example, the following lines change the severity of the Vulnerable API usage inspection to Error and disable the NuGet package is vulnerable inspection:

resharper_vulnerable_api_highlighting=error resharper_vulnerable_package_highlighting=none

The available values are error, warning, suggestion, hint, and none.

2026 年 11 月 6 日