Skip to content

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
developfrom
MLE-31765
Open

MLE-31765: [HIGH] CVE-2026-53606 in sanitize-html v2.17.4 (MarkLogic-DevExp-nodeapi)#1105
ngodugu-marklogic wants to merge 1 commit into
developfrom
MLE-31765

Conversation

@ngodugu-marklogic

Copy link
Copy Markdown

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-html from ^2.17.4 to ^2.17.5 in package.json.
  • Regenerated package-lock.json to reflect the sanitize-html version 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.

Comment thread package.json Outdated
"mocha-junit-reporter": "2.2.1",
"moment": "2.30.1",
"sanitize-html": "^2.17.4",
"sanitize-html": "^2.17.5",
Comment thread package.json
"mocha-junit-reporter": "2.2.1",
"moment": "2.30.1",
"sanitize-html": "^2.17.4",
"sanitize-html": "^2.17.6",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but I think now we prefer to pin the version explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants