Bump sanitize-html from 2.17.4 to 2.17.7 - #376
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF ScorecardScorecard details
Scanned Files
|
|
@dependabot merge |
| "react-dom": "19.0.0", | ||
| "react-scroll": "1.9.3", | ||
| "sanitize-html": "^2.17.5", | ||
| "sanitize-html": "^2.17.7", |
There was a problem hiding this comment.
Upgrade requires unsupported Node version
Medium Severity
sanitize-html 2.17.7 now requires Node >=22.12.0 so it can require() the ESM-only htmlparser2 12.x. This repo still supports and deploys Node 20 via engines, .nvmrc, App Hosting nodejs20, and several CI jobs, so install or load of this package on the current runtime fails.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 3fbc24d. Configure here.
|
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting |
Bumps [sanitize-html](https://github.com/apostrophecms/apostrophe/tree/HEAD/packages/sanitize-html) from 2.17.4 to 2.17.7. - [Changelog](https://github.com/apostrophecms/apostrophe/blob/main/packages/sanitize-html/CHANGELOG.md) - [Commits](https://github.com/apostrophecms/apostrophe/commits/sanitize-html@2.17.7/packages/sanitize-html) --- updated-dependencies: - dependency-name: sanitize-html dependency-version: 2.17.7 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
3fbc24d to
b7dc2a8
Compare
|
@dependabot merge |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b7dc2a8. Configure here.
| "image-size": "2.0.2", | ||
| "prom-client": "15.1.3", | ||
| "sanitize-html": "2.17.4", | ||
| "sanitize-html": "2.17.7", |
There was a problem hiding this comment.
Incompatible Node engine requirement
High Severity
sanitize-html 2.17.7 now requires Node >=22.12.0 because it require()s ESM-only htmlparser2 12. App Hosting, .nvmrc, and the test workflow still run Node 20, so this production dependency cannot load on the supported runtime.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit b7dc2a8. Configure here.


Bumps sanitize-html from 2.17.4 to 2.17.7.
Changelog
Sourced from sanitize-html's changelog.
Commits
72f4531Latest reconciliation q2 m3 2026 (#5555)207846aready for 4.32.0 release (#5513)f820033Latest reconciliation q2 m2 (#5511)2427508release and changelog edits (#5465)5a88e96Latest security q2 (#5464)958d162merge main to latest (#5460)Note
Medium Risk
Security-relevant sanitizer upgrade is low risk for default configs, but sanitize-html 2.17.7 declares Node >=22.12.0 while the repo root still allows Node >=20.16.0, so Node 20 runtimes may break until engines or runtime versions are aligned.
Overview
Upgrades sanitize-html to 2.17.7 in
@query/api(pinned) andsites/mainweb(^2.17.7), with matching pnpm-lock resolution so both apps share one version.The lockfile refresh pulls in sanitize-html’s newer stack (htmlparser2 12.x, updated postcss / DOM helpers) and incidental transitive bumps (e.g. turbo 2.10.12 for
eslint-plugin-turbo, dayjs vialaunder). No application source changes—only dependency manifests and the lockfile.2.17.7 includes security fixes for XSS / allowlist bypasses (SVG animation attributes,
textarea/xmpinside SVG/MathML, trailing-solidus close tags). Those issues mainly affect non-defaultallowedTags; default configs were largely unaffected, but the bump still hardens HTML sanitization on API and web paths that use the library.Reviewed by Cursor Bugbot for commit b7dc2a8. Bugbot is set up for automated code reviews on this repo. Configure here.