Skip to content

fix(deps): upgrade marked to 0.3.9 (GHSA-x5pg-88wf-qq4p) - #482

Open
Kishore-Nair wants to merge 1 commit into
OWASP:masterfrom
Kishore-Nair:kestral/fix-marked-0.3.9-55398e
Open

Kishore-Nair wants to merge 1 commit into
OWASP:masterfrom
Kishore-Nair:kestral/fix-marked-0.3.9-55398e

Conversation

@Kishore-Nair

Copy link
Copy Markdown

Kestral validated fix: marked 0.3.5 → 0.3.9

Finding: GHSA-x5pg-88wf-qq4p: Regular Expression Denial of Service in marked
Project: . (npm)
Approved by: reviewer (AI proposal) · source: ai ai_347316cc737a4711b6097a556b3a016a
Verdict: FIXED — The rescan no longer reports the original vulnerability; the project's tests pass in the container

Files changed

  • package-lock.json (+8 −7)
  • package.json (+5 −2)

Sandbox validation

Applied to an isolated copy of commit c5cb68a7084e, tested and rescanned by Kestral.

  • passed · Isolated checkout of the scanned commit: Fresh clone at c5cb68a in a separate workspace; the original scan and repository are untouched
  • passed · Apply the approved change: package.json: dependencies.marked '0.3.5' -> '0.3.9'; package.json: overrides.marked None -> '$marked' (all occurrences in this project)
  • passed · Regenerate the lockfile: npm install --package-lock-only --ignore-scripts (isolated container): resolved from the public registry; no packages installed and no scripts run
  • passed · Baseline build and tests: passed; NodeGoat: syntax checks; 6 HTTP/parser/contribution regressions; in-memory database; offline tests (not full application coverage)
  • passed · Patched build and tests: passed; NodeGoat: syntax checks; 6 HTTP/parser/contribution regressions; in-memory database; offline tests (not full application coverage)
  • passed · Build and run project tests: The project's tests pass in the container after the change (podman, docker.io/library/node:22-slim)
  • passed · Rescan the patched copy: Discovery, SBOM and graph regenerated. Source coverage: OSV: ok, Grype: ok, NVD: ok, workflow-scan: ok, supply-chain-scan: ok, scan-diff: ok; 432 vulnerabilities, 8 suspicious
  • passed · Compare before and after: Target resolved; 3 resolved, 0 introduced, 0 new suspicious

Build and tests

  • baseline: passed (podman, docker.io/library/node:22-slim, 8.1s)
  • patched: passed (podman, docker.io/library/node:22-slim, 8.7s)
    The project's tests pass in the container after the change

Before / after risk

Before After
critical 55 54
high 257 255
medium 120 120
low 3 3
suspicious 8 8

Remaining risk

  • Other advisory on marked@0.3.9: GHSA-5v2h-r2cx-5xgj: Inefficient Regular Expression Complexity in marked
  • Other advisory on marked@0.3.9: GHSA-p9wx-2529-fp83: Marked allows Regular Expression Denial of Service (ReDoS) attacks
  • Other advisory on marked@0.3.9: GHSA-rrrm-qjm4-v8hf: Inefficient Regular Expression Complexity in marked
  • Not reachability-checked: runtime use of the package was not analysed

Rollback

Revert this pull request (or its single commit). That restores marked 0.3.5 and the previous lockfile exactly; no other files are touched.


This pull request was opened by Kestral after a human approval and a sandbox validation. Kestral does not merge it: review the diff and the CI results before merging. Scan scan_02786a21f3bb472a93ee612566ea8058, validation val_f6a58a70707c463d839de1990b55398e.

Resolves GHSA-x5pg-88wf-qq4p in the root project.
Validated in a Kestral sandbox (verdict FIXED); approved by reviewer (AI proposal).

This branch has not been deployed

No deployments
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.

1 participant