Skip to content

MLE-31646: [MEDIUM] BDSA-2026-24060 in PostCSS v8.5.15 (MarkLogic-DevExp-nodeapi) - #1103

Open
ngodugu-marklogic wants to merge 1 commit into
developfrom
MLE-31646
Open

MLE-31646: [MEDIUM] BDSA-2026-24060 in PostCSS v8.5.15 (MarkLogic-DevExp-nodeapi)#1103
ngodugu-marklogic wants to merge 1 commit into
developfrom
MLE-31646

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

  1. Added an override in package.json to force: postcss: 8.5.23
  2. Regenerated package-lock.json so dependency resolution reflects the override.
  3. Verified lockfile now resolves PostCSS to 8.5.23 in package-lock.json.

Why This Approach

  1. PostCSS is transitive (via sanitize-html), not a direct top-level dependency.
  2. Upgrading sanitize-html alone did not guarantee a patched PostCSS resolution in this repo.
  3. 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 remediates Black Duck vulnerability BDSA-2026-24060 by forcing a patched PostCSS 8.5.23 resolution via npm overrides, then regenerating the lockfile to reflect the new transitive graph.

Changes:

  • Added an npm overrides entry pinning postcss to 8.5.23.
  • Regenerated package-lock.json to resolve postcss (and related transitive deps like nanoid) to patched versions.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Adds postcss to overrides to deterministically force the patched version.
package-lock.json Updates resolved dependency graph to use postcss@8.5.23 (and associated transitive updates).

Comment thread package.json
Comment on lines +107 to +108
"wrap-ansi": "6.2.0",
"postcss": "8.5.23"
Comment thread package-lock.json
"resolved": "https://pkg.harness.io/pkg/ct8onj8YTdaXtKaFsYCRLg/org-marklogic-npm/npm/nanoid/-/3.3.12/nanoid-3.3.12.tgz",
"integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",
"version": "3.3.17",
"resolved": "https://pkg.harness.io/pkg/ct8onj8YTdaXtKaFsYCRLg/org-marklogic-npm/npm/nanoid/-/nanoid-3.3.17.tgz",

@jonmille jonmille Aug 4, 2026

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 package is not available in harness yet since it was published 8/3, causing the Jenkins Pipeline to fail, and must be published for 14 days before getting into harness registry

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Version 3.3.16 was released on 7/12 and currently has no vulnerabilities reported in Black Duck

Comment thread package.json
"underscore": "1.13.8",
"wrap-ansi": "6.2.0"
"wrap-ansi": "6.2.0",
"postcss": "8.5.23"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

8.5.23 was published on 24 Jul, 2026. which is not available on Harness yet.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

8.5.20 was released on 7/19 and has no vulnerabilities in Black Duck

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.

4 participants