fix(deps): resolve AngleSharp vulnerability (GHSA-pgww-w46g-26qg) - #422
Conversation
HtmlSanitizer 9.0.892 hard-pins AngleSharp to exactly [0.17.1], which nuget audit flags as vulnerable (GHSA-pgww-w46g-26qg, Moderate). The exact pin means the transitive AngleSharp cannot be overridden with a direct PackageReference. Bump HtmlSanitizer to 9.1.949-beta, whose dependency chain pins AngleSharp 1.5.1 (past the 1.0.0 fix). The Sanitize API used by BbRichTextEditor and BbMarkdownEditor is unchanged.
|
Merged — thanks for tracking this down, and for the inline comment explaining the pin. I verified the reasoning before merging: 9.0.892 is the newest stable release, its I also diffed sanitizer output between 9.0.892 and 9.1.949-beta across 41 inputs — XSS vectors, Quill rich-text markup, Markdig output, malformed and non-ASCII HTML — exercising the same One thing to flag for anyone reading this later: the trade-off is that We will bump this again to a stable release as soon as the 9.1.x line leaves prerelease. Noted in the changelog entry alongside this change so it does not get forgotten. |
Our assemblies that reference
BlazorBlueprint.Componentshave recently begun to fail to build due to a vulnerability in one of the transitive nuget packages.HtmlSanitizer 9.0.892 hard-pins AngleSharp to exactly [0.17.1], which nuget audit flags as vulnerable (GHSA-pgww-w46g-26qg, Moderate). The exact pin means the transitive AngleSharp cannot be overridden with a direct PackageReference.
Bump HtmlSanitizer to 9.1.949-beta, whose dependency chain pins AngleSharp 1.5.1 (past the 1.0.0 fix). The Sanitize API used by
BbRichTextEditorandBbMarkdownEditoris unchanged.Description
Type of Change
Testing Checklist