MLE-31765: [HIGH] CVE-2026-53606 in sanitize-html v2.17.4 (MarkLogic-DevExp-nodeapi) - #1105
Open
ngodugu-marklogic wants to merge 1 commit into
Open
MLE-31765: [HIGH] CVE-2026-53606 in sanitize-html v2.17.4 (MarkLogic-DevExp-nodeapi)#1105ngodugu-marklogic wants to merge 1 commit into
ngodugu-marklogic wants to merge 1 commit into
Conversation
ngodugu-marklogic
requested review from
RitaChen609,
jonmille and
rjdew-progress
as code owners
August 7, 2026 05:29
There was a problem hiding this comment.
Pull request overview
This PR aims to remediate a reported dependency vulnerability by updating sanitize-html and (per the PR description) pinning PostCSS to a patched version via npm overrides to prevent vulnerable transitive resolution.
Changes:
- Updated
sanitize-htmlfrom^2.17.4to^2.17.5inpackage.json. - Regenerated
package-lock.jsonto reflect thesanitize-htmlversion bump.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Bumps sanitize-html version; expected place to also add the PostCSS override described in the PR. |
| package-lock.json | Updates resolved sanitize-html package metadata; PostCSS resolution still needs to reflect the intended remediation. |
| "mocha-junit-reporter": "2.2.1", | ||
| "moment": "2.30.1", | ||
| "sanitize-html": "^2.17.4", | ||
| "sanitize-html": "^2.17.5", |
ngodugu-marklogic
force-pushed
the
MLE-31765
branch
from
August 7, 2026 06:18
9b6304a to
63f8168
Compare
RitaChen609
reviewed
Aug 7, 2026
| "mocha-junit-reporter": "2.2.1", | ||
| "moment": "2.30.1", | ||
| "sanitize-html": "^2.17.4", | ||
| "sanitize-html": "^2.17.6", |
There was a problem hiding this comment.
This is good, but I think now we prefer to pin the version explicitly.
RitaChen609
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR remediates vulnerability BDSA-2026-24060 (PostCSS path traversal / information disclosure) reported in Black Duck for project MarkLogic-DevExp-nodeapi on branch develop.
The vulnerable transitive version was PostCSS 8.5.15.
This PR enforces PostCSS 8.5.23 (patched) using npm overrides.
What Changed
Added an override in package.json to force: postcss: 8.5.23
Regenerated package-lock.json so dependency resolution reflects the override.
Verified lockfile now resolves PostCSS to 8.5.23 in package-lock.json.
Why This Approach
PostCSS is transitive (via sanitize-html), not a direct top-level dependency.
Upgrading sanitize-html alone did not guarantee a patched PostCSS resolution in this repo.
Override-based pinning provides deterministic remediation with minimal functional impact.
Security Impact
Fixes Black Duck finding: Vulnerability ID: BDSA-2026-24060
Severity: Medium
CVSS: 6.5
Moves PostCSS from vulnerable 8.5.15 to patched 8.5.23.
Validation
Confirmed override entry exists in package.json.
Confirmed resolved version is PostCSS 8.5.23 in package-lock.json:4106.
Risk / Compatibility
Low risk: change is limited to dependency resolution for a transitive package.
Lockfile includes expected transitive metadata updates associated with the new PostCSS package.