Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
15cbd3f
fix(security): audit root production dependencies
sandl99 Aug 3, 2026
3ab72f3
test(security): cover root audit enforcement
sandl99 Aug 3, 2026
fb42b51
fix(security): validate root audit registry
sandl99 Aug 3, 2026
0e191e7
fix(security): upgrade brace-expansion remediation
jyaunches Aug 3, 2026
13c4410
fix(security): accept previous brace remediation
jyaunches Aug 3, 2026
1a99d46
Merge branch 'main' into fix/npm-audit-8116
prekshivyas Aug 3, 2026
1e30bc1
fix(security): update root brace-expansion locks
jyaunches Aug 3, 2026
06e4ae1
fix(security): keep root remediation dependency-only
apurvvkumaria Aug 3, 2026
54cec91
merge(main): refresh brace expansion remediation
prekshivyas Aug 3, 2026
80e09e1
merge: align security remediation with trusted audit
apurvvkumaria Aug 3, 2026
b853d68
fix(security): upgrade vulnerable undici runtime
apurvvkumaria Aug 3, 2026
0bd5c09
merge: align root remediation with trusted audit
apurvvkumaria Aug 3, 2026
f500da2
fix(security): bind brace remediation metadata
prekshivyas Aug 3, 2026
8a47ac6
merge(pr): reconcile concurrent brace remediation
prekshivyas Aug 3, 2026
162af6b
fix(security): close managed runtime audit gaps
prekshivyas Aug 3, 2026
aa9fdb4
merge(main): refresh managed runtime remediation
prekshivyas Aug 3, 2026
914d347
docs(security): clarify audit threshold semantics
prekshivyas Aug 3, 2026
14d17c2
merge: integrate and validate reviewed remediation history
ericksoa Aug 3, 2026
06059d8
merge: refresh remediation with current main
ericksoa Aug 3, 2026
3e2e878
merge(main): refresh managed runtime remediation
jyaunches Aug 3, 2026
29f5a87
merge: reconcile concurrent security remediation
ericksoa Aug 3, 2026
e9f0c08
merge: refresh remediation with current main
ericksoa Aug 3, 2026
e9b4f91
docs(security): restore audit evidence contract
jyaunches Aug 3, 2026
0c3ae9b
merge: reconcile concurrent audit documentation
ericksoa Aug 3, 2026
5a8f3f8
merge: refresh remediation with current main
ericksoa Aug 3, 2026
ced321f
test(security): harden npm remediation contracts
senthilr-nv Aug 3, 2026
e8fd11c
test(messaging): isolate doctor boundary
jyaunches Aug 3, 2026
b838815
merge: refresh remediation with current main
ericksoa Aug 3, 2026
051d6c6
merge: reconcile concurrent messaging test
ericksoa Aug 3, 2026
541152b
merge: refresh remediation with current main
ericksoa Aug 3, 2026
6defe89
merge: refresh remediation with latest main
ericksoa Aug 3, 2026
1d28516
test(security): allow reviewed archive rebuild latency
ericksoa Aug 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ RUN set -eu; \
OPENCLAW_LOCK_SHA256=none-legacy-fixture; \
OPENCLAW_RECIPE='ignore-scripts+reviewed-lifecycle-v1'; \
if [ "$OPENCLAW_VERSION" = "2026.7.1" ]; then \
OPENCLAW_LOCK_SHA256=82489f62febb12da52833c0b1f7f6969f7e21a098c565ef1f91342b1e5e32d88; \
OPENCLAW_LOCK_SHA256=fdbee91a3f3a0222ec2e8e34864d09dfcff4711e86ac6bfa4d475af0593acd51; \
ACTUAL_OPENCLAW_LOCK_SHA256="$(sha256sum /usr/local/lib/nemoclaw/openclaw-runtime/package-lock.json | awk '{print $1}')"; \
[ "$ACTUAL_OPENCLAW_LOCK_SHA256" = "$OPENCLAW_LOCK_SHA256" ] \
|| { echo "ERROR: OpenClaw lock SHA-256 mismatch (expected $OPENCLAW_LOCK_SHA256, found $ACTUAL_OPENCLAW_LOCK_SHA256)" >&2; exit 1; }; \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ RUN node --experimental-strip-types /scripts/upgrade-bundled-npm.mts \
--npm-root /usr/local/lib/node_modules/npm

# npm 11.18.0 contains brace-expansion 5.0.7. Replace only that private
# package from the reviewed 5.0.8 archive after the complete npm upgrade.
# package from the reviewed 5.0.9 archive after the complete npm upgrade.
# hadolint ignore=DL3059
RUN node --experimental-strip-types /scripts/patch-bundled-npm-brace-expansion.mts \
--npm-root /usr/local/lib/node_modules/npm
Expand Down Expand Up @@ -481,7 +481,7 @@ RUN --mount=type=bind,source=nemoclaw-blueprint/blueprint.yaml,target=/tmp/bluep
OPENCLAW_LOCK_SHA256=none-legacy-fixture; \
OPENCLAW_RECIPE='ignore-scripts+reviewed-lifecycle-v1'; \
if [ "$OPENCLAW_VERSION" = "2026.7.1" ]; then \
OPENCLAW_LOCK_SHA256=82489f62febb12da52833c0b1f7f6969f7e21a098c565ef1f91342b1e5e32d88; \
OPENCLAW_LOCK_SHA256=fdbee91a3f3a0222ec2e8e34864d09dfcff4711e86ac6bfa4d475af0593acd51; \
ACTUAL_OPENCLAW_LOCK_SHA256="$(sha256sum /usr/local/lib/nemoclaw/openclaw-runtime/package-lock.json | awk '{print $1}')"; \
[ "$ACTUAL_OPENCLAW_LOCK_SHA256" = "$OPENCLAW_LOCK_SHA256" ] \
|| { echo "Error: OpenClaw lock SHA-256 mismatch (expected $OPENCLAW_LOCK_SHA256, found $ACTUAL_OPENCLAW_LOCK_SHA256)"; exit 1; }; \
Expand Down
2 changes: 1 addition & 1 deletion agents/hermes/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ RUN node --experimental-strip-types /scripts/upgrade-bundled-npm.mts \
--npm-root /usr/local/lib/node_modules/npm

# Replace npm 11.18.0's private brace-expansion 5.0.7 package with the
# registry- and SRI-pinned 5.0.8 release.
# registry- and SRI-pinned 5.0.9 release.
# hadolint ignore=DL3059
RUN node --experimental-strip-types /scripts/patch-bundled-npm-brace-expansion.mts \
--npm-root /usr/local/lib/node_modules/npm
Expand Down
2 changes: 1 addition & 1 deletion agents/langchain-deepagents-code/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ RUN node --experimental-strip-types /scripts/upgrade-bundled-npm.mts \
--npm-root /usr/local/lib/node_modules/npm

# Replace npm 11.18.0's private brace-expansion 5.0.7 package with the
# registry- and SRI-pinned 5.0.8 release.
# registry- and SRI-pinned 5.0.9 release.
# hadolint ignore=DL3059
RUN node --experimental-strip-types /scripts/patch-bundled-npm-brace-expansion.mts \
--npm-root /usr/local/lib/node_modules/npm
Expand Down
6 changes: 3 additions & 3 deletions agents/openclaw/openclaw-runtime/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ci/reviewed-npm-audit.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"integrity": "sha512-ge/Xss99CHAjPL/ikmH/UFoiOrjcxDB4sW3y9mhyCD+dYW3wzV7TKbAVdkrXFgAG2d2BjpJofP97zUZ+umxo8g==",
"tarballUrl": "https://registry.npmjs.org/openclaw/-/openclaw-2026.7.1.tgz",
"directory": "agents/openclaw/openclaw-runtime",
"lockSha256": "82489f62febb12da52833c0b1f7f6969f7e21a098c565ef1f91342b1e5e32d88"
"lockSha256": "fdbee91a3f3a0222ec2e8e34864d09dfcff4711e86ac6bfa4d475af0593acd51"
},
{
"id": "mcporter-runtime",
Expand Down
17 changes: 11 additions & 6 deletions docs/security/openclaw-2026.7.1-dependency-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

Review date: 2026-07-21

Last updated: 2026-08-03

## Decision

Pin the production OpenClaw runtime and matching official plugins to the
Expand All @@ -17,10 +19,10 @@ the exact plugin graph reports no vulnerabilities after that update.

The production OpenClaw install uses the authoritative committed lock at
`agents/openclaw/openclaw-runtime/package-lock.json`, with SHA-256
`82489f62febb12da52833c0b1f7f6969f7e21a098c565ef1f91342b1e5e32d88`.
`fdbee91a3f3a0222ec2e8e34864d09dfcff4711e86ac6bfa4d475af0593acd51`.
NemoClaw derives that lock from the SRI-verified `openclaw@2026.7.1` archive
after replacing the reviewed affected `brace-expansion@5.0.7` and
`fast-uri@3.1.2` resolutions with `5.0.8` and `3.1.4`.
`fast-uri@3.1.2` resolutions with `5.0.9` and `3.1.4`.
Image builds verify the lock digest and installed production graph before they
expose the OpenClaw binary.

Expand Down Expand Up @@ -61,9 +63,9 @@ whose amd64 config reports Node `22.23.1`.
- `tar@7.5.20` (NemoClaw plugin direct dependency)
- `sha512-9FcyK4PA6+WbzlTM9WhQm6vB5W7cP7dUiPsv1g7YDwEQnQ1CGpK3MGlKk/ITVWMk05kHZuBhmVhiv8LZoy/PFQ==`
- `https://registry.npmjs.org/tar/-/tar-7.5.20.tgz`
- `brace-expansion@5.0.8` (OpenClaw locked-runtime remediation)
- `sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==`
- `https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz`
- `brace-expansion@5.0.9` (OpenClaw locked-runtime remediation)
- `sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==`
- `https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz`
- `fast-uri@3.1.4` (OpenClaw and mcporter locked-runtime remediation)
- `sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==`
- `https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.4.tgz`
Expand Down Expand Up @@ -94,7 +96,10 @@ major-version compatibility boundary.

OpenClaw's `minimatch@10.2.5` edge originally resolved
`brace-expansion@5.0.7`, which is affected by `GHSA-mh99-v99m-4gvg`.
The reviewed OpenClaw remediation selects `5.0.8`, retains the declared
The initial remediation selected `5.0.8` for that advisory.
The high-severity `GHSA-rgw5-rvv9-x895`, also tracked as `CVE-2026-69152`,
affects `brace-expansion` versions `>=4.0.0 <5.0.9`.
The current OpenClaw remediation selects `5.0.9`, retains the declared
`balanced-match@^4.0.2` dependency shape, and fails if the upstream shrinkwrap
or replacement archive identity changes.

Expand Down
22 changes: 13 additions & 9 deletions docs/security/sandbox-base-2026-07-25-dependency-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

Date: 2026-07-25

Last updated: 2026-08-03

## Scope

This review covers the sandbox dependency changes that:

- standardize the OpenClaw, Hermes, and Deep Agents Code base images on fixed Debian `libexpat1=2.8.2-1`, `libjq1=1.8.2-1`, `jq=1.8.2-1`, `vim-common=2:9.2.0782-1`, and `vim-tiny=2:9.2.0782-1` packages, with the reviewed `libonig5=6.9.9-1+b1` jq runtime dependency;
- replace the `brace-expansion@5.0.7` copy inside the reviewed `npm@11.18.0` package with `brace-expansion@5.0.8`; and
- replace the `brace-expansion@5.0.7` copy inside the reviewed `npm@11.18.0` package with `brace-expansion@5.0.9`; and
- verify the security-relevant dual-life module versions shipped by the checksum-pinned Perl 5.44.0 build.

The OpenClaw base image retains its existing reviewed jq and Expat identities, while the Hermes and Deep Agents Code base images move to the same package boundary.
Expand All @@ -25,7 +27,7 @@ These changes preserve the existing supported image behavior and do not create a
| Oniguruma | Distro-selected jq runtime dependency | All managed images: `libonig5=6.9.9-1+b1` | Debian Snapshot `20260724T000000Z` and architecture-specific SHA-256 values below |
| Expat | OpenClaw: `2.8.2-1`; Hermes and Deep Agents Code: distro-selected package | All managed images: `libexpat1=2.8.2-1` | Debian Snapshot `20260724T000000Z` and architecture-specific SHA-256 values below |
| npm | `npm@11.18.0` | unchanged | Existing reviewed npm archive and integrity |
| npm private `brace-expansion` | `5.0.7` | `5.0.8` | Registry tarball and SHA-512 integrity below |
| npm private `brace-expansion` | `5.0.7` | `5.0.9` | Registry tarball and SHA-512 integrity below |
| Perl | `5.44.0-1nemoclaw1` | unchanged | Existing CPAN archive SHA-256 and complete upstream test suite |

The fixed Vim source package is later than every reviewed 9.2 patch boundary.
Expand All @@ -44,9 +46,9 @@ The immutable Debian package SHA-256 values are:

The reviewed npm replacement is:

- version: `brace-expansion@5.0.8`;
- integrity: `sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==`; and
- tarball: `https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz`.
- version: `brace-expansion@5.0.9`;
- integrity: `sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==`; and
- tarball: `https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz`.

## Contract audit

Expand Down Expand Up @@ -79,14 +81,16 @@ The final reviewed dependency set and range evidence is:
| `libjq1` | `1.7.1-6+deb13u2..1.8.2-1` | `1.8.2-1` | exact dpkg identity and matching `jq` runtime |
| `jq` | `1.7.1-6+deb13u2..1.8.2-1` | `1.8.2-1` | exact dpkg identity, `jq-1.8.2`, and a JSON expression probe |
| `vim-common` and `vim-tiny` | `2:9.1.1230-2..2:9.2.0782-1` | `2:9.2.0782-1` | exact dpkg identities and Vim 9.2 runtime probe |
| npm private `brace-expansion` | `5.0.7..5.0.8` | `5.0.8` | complete-tree identity, dependency-shape, SRI, rollback, and npm/npx ordering guards |
| npm private `brace-expansion` | `>=4.0.0 <5.0.9` | `5.0.9` | complete-tree identity, dependency-shape, SRI, rollback, and npm/npx ordering guards |
| Perl and reviewed dual-life modules | Perl `5.43.10..5.44.0`; `HTTP::Tiny < 0.095`; `IO::Compress < 2.223` | Perl `5.44.0`; `HTTP::Tiny 0.096`; `IO::Compress 2.223`; component identities listed below | native package identity and direct interpreter/module version probes |

### Bundled npm package compatibility

The npm release remains `11.18.0`.
Its private dependency tree contains one top-level `brace-expansion@5.0.7` package with the existing `balanced-match@^4.0.2` contract.
The replacement `5.0.8` package preserves that dependency contract, and its Node engine floor is compatible with the Node 22 and Node 24 base images.
The initial replacement selected `5.0.8` to address `GHSA-mh99-v99m-4gvg`.
The high-severity `GHSA-rgw5-rvv9-x895`, also tracked as `CVE-2026-69152`, affects versions `>=4.0.0 <5.0.9`.
The current `5.0.9` replacement preserves the dependency contract, and its Node engine floor is compatible with the Node 22 and Node 24 base images.

The replacement helper:

Expand Down Expand Up @@ -138,7 +142,7 @@ The core interpreter version check also remains the binding for core-language fi

### DEP-2 affected package inside npm's private tree

- Range: `brace-expansion 5.0.7..5.0.8`
- Range: `brace-expansion >=4.0.0 <5.0.9`
- Surface: transitive bundled npm dependency
- Severity: high
- Confidence: high
Expand Down Expand Up @@ -176,7 +180,7 @@ The core interpreter version check also remains the binding for core-language fi

Remove the Debian snapshot override only when the supported Debian suite publishes packages at or beyond every reviewed fix boundary and the replacements pass the same amd64 and arm64 package and runtime checks for all managed base images.

Remove the private brace-expansion helper only when every pinned Node base installs a reviewed npm release whose complete private tree contains no brace-expansion version below 5.0.8.
Remove the private brace-expansion helper only when every pinned Node base installs a reviewed npm release whose complete private tree contains no brace-expansion version below 5.0.9.
Updating the npm archive without revisiting this helper must fail the image contract.

## Verification
Expand Down
8 changes: 4 additions & 4 deletions scripts/lib/openclaw-npm-remediation.mts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ const BRACE_EXPANSION_INTEGRITY =
"sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==";
const BRACE_EXPANSION_TARBALL =
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz";
const CURRENT_BRACE_EXPANSION_VERSION = "5.0.8";
const CURRENT_BRACE_EXPANSION_VERSION = "5.0.9";
const CURRENT_BRACE_EXPANSION_INTEGRITY =
"sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==";
"sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==";
const CURRENT_BRACE_EXPANSION_TARBALL =
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz";
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz";
const CURRENT_FAST_URI_VERSION = "3.1.4";
const CURRENT_FAST_URI_INTEGRITY =
"sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==";
Expand Down Expand Up @@ -152,7 +152,7 @@ const REMEDIATIONS: Readonly<Record<string, Remediation>> = Object.freeze({
// publishes both corrected transitive resolutions in its shrinkwrap.
"openclaw@2026.7.1": {
expectedPatchedTreeIntegrity:
"sha512-/D/vAtyFEvd0TvYxFBfBN/chwW8WGaAy8bH40ojjJSRuN+P461qnbfiMTHydA7asXN/69y2NnQHs7b3pDh8+0g==",
"sha512-13Ou0RhcOY850Feq/gu6MiCrRQPUlnfkVxwH6o2KCe1G460lfFBJ+lkGBjedUhek1nyEOSotcD0BYsizX7TI+w==",
kind: "current-core",
version: "2026.7.1",
},
Expand Down
6 changes: 3 additions & 3 deletions scripts/patch-bundled-npm-brace-expansion.mts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "nod
import { fileURLToPath } from "node:url";

export const AFFECTED_BRACE_EXPANSION_VERSION = "5.0.7";
export const FIXED_BRACE_EXPANSION_VERSION = "5.0.8";
export const FIXED_BRACE_EXPANSION_VERSION = "5.0.9";
export const FIXED_BRACE_EXPANSION_INTEGRITY =
"sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==";
"sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==";
export const FIXED_BRACE_EXPANSION_TARBALL =
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz";
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz";
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
export const REVIEWED_NPM_VERSION = "11.18.0";

type JsonRecord = Record<string, unknown>;
Expand Down
4 changes: 2 additions & 2 deletions test/bundled-npm-brace-expansion-dockerfile-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ describe("bundled npm brace-expansion image remediation contract", () => {
it("binds the replacement to the reviewed npm and registry artifact", () => {
expect(REVIEWED_NPM_VERSION).toBe(UPGRADED_NPM_VERSION);
expect(REVIEWED_NPM_VERSION).toBe("11.18.0");
expect(FIXED_BRACE_EXPANSION_VERSION).toBe("5.0.8");
expect(FIXED_BRACE_EXPANSION_VERSION).toBe("5.0.9");
expect(FIXED_BRACE_EXPANSION_INTEGRITY).toMatch(/^sha512-[A-Za-z0-9+/]+=*$/u);
expect(FIXED_BRACE_EXPANSION_TARBALL).toBe(
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
);
});

Expand Down
4 changes: 2 additions & 2 deletions test/openclaw-locked-install.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const PACKAGE_SPEC = "openclaw@2026.7.1";
const INTEGRITY =
"sha512-ge/Xss99CHAjPL/ikmH/UFoiOrjcxDB4sW3y9mhyCD+dYW3wzV7TKbAVdkrXFgAG2d2BjpJofP97zUZ+umxo8g==";
const TARBALL = "https://registry.npmjs.org/openclaw/-/openclaw-2026.7.1.tgz";
const LOCK_SHA256 = "82489f62febb12da52833c0b1f7f6969f7e21a098c565ef1f91342b1e5e32d88";
const LOCK_SHA256 = "fdbee91a3f3a0222ec2e8e34864d09dfcff4711e86ac6bfa4d475af0593acd51";
const roots: string[] = [];

function sha256(file: string): string {
Expand Down Expand Up @@ -172,7 +172,7 @@ describe("locked OpenClaw production installation (#5896)", () => {
const verified = verifyReviewedNpmLock(lockRequest(), reviewedMetadata);
expect(verified).toHaveLength(307);
expect(verified).toContain(PACKAGE_SPEC);
expect(verified).toContain("brace-expansion@5.0.8");
expect(verified).toContain("brace-expansion@5.0.9");
expect(verified).toContain("fast-uri@3.1.4");
expect(sha256(LOCKFILE)).toBe(LOCK_SHA256);
});
Expand Down
6 changes: 3 additions & 3 deletions test/openclaw-npm-remediation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ describe("OpenClaw npm remediation", () => {
packages: Record<string, { integrity?: string; resolved?: string; version?: string }>;
}>(path.join(directory, "npm-shrinkwrap.json"));
expect(shrinkwrap.packages["node_modules/brace-expansion"]).toMatchObject({
version: "5.0.8",
resolved: "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
version: "5.0.9",
resolved: "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
integrity:
"sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
"sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
});
expect(shrinkwrap.packages["node_modules/fast-uri"]).toMatchObject({
version: "3.1.4",
Expand Down
Loading