scripts

Get-LibraryVulnerabilityInfo.ps1

SYNOPSIS

Get the list of module/package/library vulnerabilities from the RetireJS or SafeNuGet projects.

SYNTAX

Get-LibraryVulnerabilityInfo.ps1 [-Name] <String> [-Repository <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Get-JsVulnerabilities.ps1 Backbone.js

atOrAbove below identifiers ——— —– ———– 0.5.0 @{release=0.5.0; summary=cross-site scripting vulnerability}

EXAMPLE 2

Get-JsVulnerabilities.ps1 Backbone.js -Repository nuget

afterOrAt before infoUri ——— —— ——- 0.5.3 http://backbonejs.org/#changelog

PARAMETERS

-Name

The name of the module or package or library to check.

Type: String
Parameter Sets: (All)
Aliases: Module, Package, Library

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Repository

Whether to check the NPM, JS, or NuGet vulnerability lists.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Js
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String of a package/module name to search for.

OUTPUTS

System.Management.Automation.PSCustomObject with details about any vulnerabilities found.

NOTES

Invoke-RestMethod

Select-Xml