Repository navigation
Conversation
Two high-severity advisories are reachable from untrusted target content: - @xmldom/xmldom 0.9.10 (via plist) parses XML plist bytes from analyzed app bundles in the keyed-archive reader. Refreshed to 0.9.12. - brace-expansion 5.0.7 (via @electron/asar -> minimatch) is reached while analyzing untrusted ASAR archives. Refreshed to 5.0.12. Both are in-range patch updates (plist declares ^0.9.10, minimatch declares ^5.0.5), so no source or API change is required and no direct dependency declaration moves. Lockfile-only change. The remaining smol-toml advisory is not included: it parses operator-owned client configuration rather than untrusted target content, and its fix moves outside the declared range and changes leading-BOM handling.
Owner
This was referenced Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two high-severity advisories in the dependency tree are reachable from the untrusted content REA analyzes, so a crafted target can drive the vulnerable code path.
@xmldom/[email protected], pulled in throughplist, parses XML plist bytes from an analyzed app bundle in the keyed-archive reader.[email protected], pulled in through@electron/asar→minimatch, is reached while analyzing an ASAR archive. This change refreshes both to their patched releases and leaves everything else untouched. Both are in-range patch updates, so no direct dependency declaration moves, no API changes, and no source file is edited.Problem and expected behavior
The smallest trigger is analyzing an attacker-supplied target whose format exercises one of the two paths. An XML plist inside an analyzed bundle reaches
plist'sparse()atsrc/artifacts/KeyedArchiveReader.ts, which delegates to@xmldom/xmldom; an ASAR archive reaches@electron/asar, which delegates glob matching tominimatchand brace expansion tobrace-expansion. In both cases the dependency is a transitive one, so the vulnerable version arrives without any direct declaration inpackage.json, andnpm auditreports it at high severity.The violated invariant is that REA's dependency surface should not contain known-vulnerable code on paths that untrusted target content can reach. The expected behavior is that the same inputs are still processed with the same results, but through patched dependency releases. This change produces exactly that: the two advisories are remediated and observable behavior is unchanged.
Change and scope
The change is confined to
package-lock.jsonand moves two transitive packages to their patched releases:@xmldom/xmldom0.9.10→0.9.12, andbrace-expansion5.0.7→5.0.12. Both targets sit inside the range each parent already declares (plistdeclares^0.9.10,minimatchdeclares^5.0.5), so this is a lockfile-only refresh and no parent or direct dependency changes its declared range. The diff is seven lines.I deliberately did not include the third advisory in the tree.
[email protected]is a direct dependency, but it parses the operator's own client-configuration file rather than untrusted target content, so it is outside the reachable-from-untrusted-input boundary this PR targets. Its fix also moves outside the declared range and changes behavior:1.9.0accepts a leading UTF-8 BOM where1.7.0rejects it, and an existing test intentionally locks the rejection, so bumping it is a separate decision with its own review. I also did not add a dependency-audit step to CI. A per-PR hard-fail audit gate would red-flag unrelated pull requests whenever a new advisory is published without any code change, which would disrupt the repository's normal contribution flow; that is a policy decision for the maintainer, not something to attach to this fix.Intentionally not included: no source edits, no test edits, no direct dependency range changes, no CI changes, and no attempt to address the remaining advisory.
Contract and boundary impact
package-lock.json); no REA source stage changes.[email protected]narrows its supported Node range to20 || >=22, which REA already exceeds (its supported runtime is^22.19 || ^24.11 || >=26).docs/product-catalog.json), package, or installation impact: none. The generated package metadata tracks the MCP SDK versions, not these packages, sonpm run metadata:checkstays green and no regeneration is required.Evidence and regression coverage
npm auditon the affected base revision reports three high-severity advisories, two of which are@xmldom/xmldomandbrace-expansion; after the change,npm auditreports only thesmol-tomladvisory that is intentionally out of scope.smol-tomladvisory is left open by design and is noted above.For evidence-bearing changes:
Validation performed
npm ci— passed, lockfile installs consistently.npm audit— three high advisories before, one after (only the intentionally excludedsmol-toml).npm ls @xmldom/xmldom brace-expansion— confirms the resolved versions are0.9.12and5.0.12.npx tsc --noEmit— passed, exit 0.npm run build:cached— passed, one task successful.npm run deps:check— passed.npm run metadata:check— passed.npx vitest run src/artifacts/KeyedArchiveReader.test.ts tests/boundary/filesystem/asarInventoryContainment.test.ts tests/boundary/filesystem/asarInventoryFreshness.test.ts tests/boundary/providers/native/keyedArchiveEncoding.test.ts tests/boundary/providers/native/artifactProvider.archiveInventory.test.ts— 24 passed, 3 skipped (5 files), covering the keyed-archive and ASAR readers that use the bumped packages.npm run docs:checkcurrently fails ondocs/verification/managed-conformance-manifest.jsonin this checkout. That failure reproduces on the unmodified base revision and is unrelated to this change, so it is not a regression from this PR.Compatibility, safety, and release
package.jsonchanges, so no release note or metadata regeneration is triggered.Review checklist
type(scope): outcome.metadata:check.