Skip to content

fix: unblock CI with patched source-map-js - #165902

Merged
shakkernerd merged 2 commits into
mainfrom
steipete/fix-source-map-js-advisory
Oct 6, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
steipete/fix-source-map-js-advisory

Conversation

@steipete

@steipete steipete commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The production dependency audit resolves [email protected], which is affected by GHSA-68fv-2mgg-jv7q. Its HIGH finding fails security-fast on main and causes PR fail-fast handling to cancel the remaining CI jobs.

User Impact

The dependency graph now selects the patched [email protected], allowing the affected security audit to pass. Source-map consumers receive the upstream protections against excessive or malformed indexed offsets and pathological source-map processing.

Why This Change Was Made

The existing workspace override applies the same patch release to CSS-tree, Magicast, and PostCSS. All three accept this version within their declared ranges. The lockfile changes their resolved dependency and integrity record; its remaining changes refresh registry deprecation metadata without moving other package versions.

A release-age exception admits only [email protected]. That release was published on September 30, 2026. The comment records manual removal of the exception after its normal seven-day admission time, 2026-10-07T14:08:09.382Z. Integrity checks, the security audit, and the cooldown for other versions remain enforced.

Evidence

The same advisory failure is recorded on main and the blocked updater-compatibility PR. Review of the published package verified the lockfile integrity, unchanged license and dependency/install-script surface, and compatibility with all three parent ranges.

On Blacksmith, the exact PR head passes frozen installation with pnpm 12.5.1, workspace formatting, and node scripts/ci-production-audit.mjs with no HIGH findings. CSS-tree, Magicast, and PostCSS resolve [email protected]. Focused checks pass for valid source-map generation and consumption, invalid and excessive nested offsets, and PostCSS/CSS-tree source-map output. Full selected hosted CI remains required before landing.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 11:37 PM ET / October 6, 2026, 03:37 UTC (Revision 2).

ClawSweeper review

What this changes

The PR pins source-map-js to patched version 1.2.2 for CSS and build tooling and exempts that exact version from the seven-day dependency cooldown.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused dependency repair: current main and the latest release still resolve the vulnerable version. No introduced correctness defect was found, and the current admin-author dependency guard supersedes the earlier draft-specific approval blocker.

Priority: P2
Reviewed head: 6c6e892ec690eb6cafdd7fa45e93338be05c17f8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, compatible security dependency update with independently verified package identity and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified admin author is exempt from external-contributor proof. The captured body reports exact-head frozen installation, production auditing, and source-map consumer checks on Blacksmith, matching the changed dependency owner. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified admin author is exempt from external-contributor proof. The captured body reports exact-head frozen installation, production auditing, and source-map consumer checks on Blacksmith, matching the changed dependency owner. No stored-data contract changes.
Evidence reviewed 10 items Pinned introduced changes: The verified merge-base-to-head delta adds matching overrides, replaces the source-map-js integrity and snapshot, and updates CSS-tree, Magicast, and PostCSS. Remaining changes are deprecation metadata; no other package version moves. The introduced diff passes whitespace checking.
Still necessary on main: Fetched main resolves source-map-js 1.2.1 for all three consumers and has neither the proposed override nor its cooldown exception.
Latest release provenance: The v2026.9.8 lockfile also resolves source-map-js 1.2.1. Its contents were inspected through the GitHub contents API after the local historical blob proved unavailable.
Findings None None.
Security None None.

How this fits together

OpenClaw’s workspace dependency policy controls the packages pnpm installs. The lockfile supplies source-map processing to CSS and build tooling and feeds the production security audit.

flowchart TD
  A[Package requirements] --> B[Workspace dependency policy]
  B --> C[Version pin and cooldown admission]
  C --> D[Resolved lockfile]
  D --> E[CSS and build tooling]
  D --> F[Production security audit]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Config +4, Other +20. Total +24 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 4 0 +4
Generated 0 0 0 0
Other 1 26 6 +20
Total 2 30 6 +24

Review metrics

Metric Value Why it matters
Dependency policy scope 1 version pin; 1 exact-version cooldown exception The exception admits only the reviewed security release and documents its removal time.

Technical review

Best possible solution:

Use the verified patched package through the existing dependency owner and remove the exact-version cooldown exception after its documented admission date.

Do we have a high-confidence way to reproduce the issue?

Yes, at the source level: current main resolves a version explicitly covered by the verified advisory, and the production audit rejects HIGH findings. No audit or exploit was executed during this review.

Is this the best way to solve the issue?

Yes: the existing override consistently selects the compatible patched release without suppressing the audit or adding another implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 14fe10d01c75.

Labels

Label changes:

  • remove merge-risk: 🚨 security-boundary: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This repairs a verified transitive dependency advisory with bounded scope; no urgent OpenClaw runtime failure is established.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified admin author is exempt from external-contributor proof. The captured body reports exact-head frozen installation, production auditing, and source-map consumer checks on Blacksmith, matching the changed dependency owner. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced changes: The verified merge-base-to-head delta adds matching overrides, replaces the source-map-js integrity and snapshot, and updates CSS-tree, Magicast, and PostCSS. Remaining changes are deprecation metadata; no other package version moves. The introduced diff passes whitespace checking. (pnpm-lock.yaml:9571, 6c6e892ec690)
  • Still necessary on main: Fetched main resolves source-map-js 1.2.1 for all three consumers and has neither the proposed override nor its cooldown exception. (pnpm-lock.yaml:9551, 14fe10d01c75)
  • Latest release provenance: The v2026.9.8 lockfile also resolves source-map-js 1.2.1. Its contents were inspected through the GitHub contents API after the local historical blob proved unavailable. (pnpm-lock.yaml:9510, fc23bc864e45)
  • Verified upstream repair: The directly changed dependency establishes the upstream contract. GHSA-68fv-2mgg-jv7q identifies 1.2.2 as patched. Inspection of the upstream commit and published package confirms offset validation, nested-offset bounds, reduced pathological processing, and a CSP-compatible sorting fallback. (lib/source-map-consumer.js:957, cf7658058cee)
  • Published package identity: Registry metadata verifies repository ownership and gitHead 0a1d334fd1e55a47df97fcd60a7915d46df3b08a. Both tarballs were downloaded and inspected in memory without execution; calculated SHA-512 values match registry and lockfile integrity. License, dependency count, and installation lifecycle remain unchanged. Publication at 2026-09-30T14:08:09.382Z corroborates the documented seven-day admission timestamp. (package.json, 0a1d334fd1e5)
  • Consumer compatibility: Registry metadata for the actual locked CSS-tree 3.2.1, Magicast 0.5.5, and PostCSS 8.5.28 versions declares source-map-js ^1.2.1, which admits 1.2.2. The captured PR body reports exact-head Blacksmith frozen-install, production-audit, and focused source-map checks; these were not rerun during this read-only review. (pnpm-lock.yaml:14498, 6c6e892ec690)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-06T01:58:07.747Z sha 6c6e892 :: blocked before merge. :: none

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 6c6e892ec690eb6cafdd7fa45e93338be05c17f8
  • Maintainer: @steipete
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Oct 6, 2026
@shakkernerd
shakkernerd merged commit 9c66e8f into main Oct 6, 2026
186 of 188 checks passed
@shakkernerd
shakkernerd deleted the steipete/fix-source-map-js-advisory branch October 6, 2026 03:49
@shakkernerd

Copy link
Copy Markdown
Contributor

Fixed: production dependencies now resolve patched source-map-js 1.2.2.

With thanks to @steipete.

RomneyDa pushed a commit that referenced this pull request Oct 6, 2026
Resolve the source-map-js security finding in the audited dependency graph by pinning the patched release with a version-specific release-age exception.

Reviewed-by: @shakkernerd
(cherry picked from commit 9c66e8f)
RomneyDa pushed a commit that referenced this pull request Oct 6, 2026
Resolve the source-map-js security finding in the audited dependency graph by pinning the patched release with a version-specific release-age exception.

Reviewed-by: @shakkernerd
(cherry picked from commit 9c66e8f)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
Resolve the source-map-js security finding in the audited dependency graph by pinning the patched release with a version-specific release-age exception.

Reviewed-by: @shakkernerd
steipete added a commit that referenced this pull request Oct 6, 2026
CI run 37417552972 tested cacf0d67a63e, whose main parent predates the source-map-js fix in #165902. Merge current main to include that fix without rebasing. The PR patch is unchanged; 160 focused UI tests and the production dependency audit pass.
roboclaw-bot added a commit to yetval/openclaw that referenced this pull request Oct 6, 2026
Preserve the contributor commit while incorporating the already-landed
source-map-js security fix from main (openclaw#165902). The resulting PR delta
remains the WhatsApp image-document normalization and its regression test.

Co-authored-by: Tak Hoffman <[email protected]>
Co-authored-by: Takhoffman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants