kampiech / SAST_1

1 stars 1 forks source link

Update dependency HtmlSanitizer to v8 [SECURITY] - autoclosed #32

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 4 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
HtmlSanitizer 5.0.355 -> 8.0.723 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2020-26293

Impact

If you have explicitly allowed the <style> tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the <style> tag so there is no risk if you have not explicitly allowed the <style> tag.

Patches

The problem has been fixed in version 5.0.372.

Workarounds

Remove the <style> tag from the set of allowed tags.

For more information

If you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer

Credits

This issue was discovered by Michal Bentkowski of Securitum.

CVE-2023-44390

Impact

The vulnerability occurs in configurations where foreign content is allowed, i.e. either svg or math are in the list of allowed elements. Specifically, the requirements for the vulnerability are:

  1. Allowing one foreign element: svg, or math
  2. Comments or one raw text element: iframe, noembed, xmp, title, noframes, style or noscript

Configurations that meet the above requirements plus the following are vulnerable to an additional vulnerability:

In case an application sanitizes user input with a vulnerable configuration, an attacker could bypass the sanitization and inject arbitrary HTML, including JavaScript code.

Note that in the default configuration the vulnerability is not present.

Patches

The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).

Workarounds

Disallow foreign elements svg and math. This is the case in the default configuration, which is therefore not affected by the vulnerability.


Release Notes

mganss/HtmlSanitizer (HtmlSanitizer) ### [`v8.0.723`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v8.0.723): 8.0.723 Fix for https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-43cp-6p3q-2pc4 ### [`v8.0.718`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v8.0.718): 8.0.718 Fix [#​469](https://togithub.com/mganss/HtmlSanitizer/issues/469) ### [`v8.0.692`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v8.0.692): 8.0.692 Fixes a bug in CSS `url()` sanitizing (see [#​411](https://togithub.com/mganss/HtmlSanitizer/issues/411)) ### [`v8.0.645`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v8.0.645): 8.0.645 [#​420](https://togithub.com/mganss/HtmlSanitizer/issues/420) [#​423](https://togithub.com/mganss/HtmlSanitizer/issues/423) ### [`v8.0.601`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v8.0.601): 8.0.601 [#​361](https://togithub.com/mganss/HtmlSanitizer/issues/361) [#​364](https://togithub.com/mganss/HtmlSanitizer/issues/364) [#​365](https://togithub.com/mganss/HtmlSanitizer/issues/365) [#​366](https://togithub.com/mganss/HtmlSanitizer/issues/366) [#​367](https://togithub.com/mganss/HtmlSanitizer/issues/367) [#​368](https://togithub.com/mganss/HtmlSanitizer/issues/368) [#​369](https://togithub.com/mganss/HtmlSanitizer/issues/369)\ [#​370](https://togithub.com/mganss/HtmlSanitizer/issues/370) [#​371](https://togithub.com/mganss/HtmlSanitizer/issues/371) [#​372](https://togithub.com/mganss/HtmlSanitizer/issues/372) [#​373](https://togithub.com/mganss/HtmlSanitizer/issues/373) [#​374](https://togithub.com/mganss/HtmlSanitizer/issues/374) [#​375](https://togithub.com/mganss/HtmlSanitizer/issues/375) [#​396](https://togithub.com/mganss/HtmlSanitizer/issues/396) ### [`v7.1.542`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.1.542): 7.1.542 Merge pull request [#​359](https://togithub.com/mganss/HtmlSanitizer/issues/359) from vanillajonathan/patch-2 ### [`v7.1.512`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.1.512): 7.1.512 Update to AngleSharp 0.17.1 ### [`v7.1.509`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.1.509): 7.1.509 - Update to AngleSharp 0.17.0 - Target net461 ### [`v7.1.488`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.1.488): 7.1.488 Update to AngleSharp.Css 0.16.4 ### [`v7.1.475`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.1.475): 7.1.475 Add custom CSS formatting (see [#​112](https://togithub.com/mganss/HtmlSanitizer/issues/112)) ### [`v7.0.473`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v7.0.473): 7.0.473 Update to AngleSharp.Css 0.16.3 ### [`v6.0.453`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v6.0.453): 6.0.453 Merge pull request [#​305](https://togithub.com/mganss/HtmlSanitizer/issues/305) from mganss/dependabot/nuget/Microsoft.NET.Test.Sdk-17.0.0 ### [`v6.0.441`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v6.0.441): 6.0.441 Update to AngleSharp.Css 0.16.1 [#​298](https://togithub.com/mganss/HtmlSanitizer/issues/298) [#​66](https://togithub.com/mganss/HtmlSanitizer/issues/66) ### [`v6.0.437`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v6.0.437): 6.0.437 NRT ### [`v5.0.404`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v5.0.404): 5.0.404 Update AngleSharp to 0.15.0 ### [`v5.0.376`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v5.0.376): 5.0.376 [#​256](https://togithub.com/mganss/HtmlSanitizer/issues/256) ### [`v5.0.372`](https://togithub.com/mganss/HtmlSanitizer/releases/tag/v5.0.372): 5.0.372 Fix `style` tag issue

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud