# Upgrade a dependency with a known exposure

Trace an advisory to the resolved dependency graph, then test a bounded replacement without hiding compatibility changes.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- A fixed application revision, manifests, lockfiles and the resolved dependency graph for each shipped runtime and build target.

- Dated publisher advisories identifying affected versions, prerequisites and candidate fixed releases; conflicting advisory claims remain separate.

- Call sites, configuration and representative fixtures for the affected feature, including a non-destructive regression case for the reported weakness.

- An isolated install/test environment, an approved package-source policy, a reviewed install-hook policy and the maintainer's compatibility and recovery constraints.

## Reviewed resources

### Security Auditor

Review advisory reachability, dependency exposure and source-level remediation evidence; leave patch execution and release decisions to the project operator.
https://undominated.ai/agents/anthropic-security-auditor/

Reviewed: 2026-10-13; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: 0910739fa2df087ff5566ea1f34271f5fdd7569c16621ca14e01c1cca2c379d6
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/agents/security-auditor.md

Permissions: Frontmatter tools: Read, Glob, Grep, Bash.; Body instruction to run npm audit, pip-audit, and grep for known-bad patterns; to read manifests.; Body instruction: read-only, no file create/modify. Instruction, not enforcement.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/LICENSE

#### Component limitations

- Bash and package auditors depend on host permissions and tool availability; the definition does not enforce its read-only boundary.

- Severity uses a qualitative CVSS-like judgment, not a computed score or a demonstrated exploit.

- Dependency vulnerability findings need current advisory data; this definition alone is not a penetration test or complete security assessment.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

### SafeDep Pinner MCP

Where GitHub references or container images are in scope, supply immutable-identifier lookup evidence for the dependency or harness manifest; this does not establish vulnerability closure or edit the project.
https://undominated.ai/mcp-servers/safedep-pinner-mcp/

Reviewed: 2026-10-14; revision: 095b2c0285684f54efae7dd9ae32e23c9a32665a
Definition SHA-256: no redistributable definition attached
Source: https://github.com/safedep/pinner-mcp

Permissions: Read GitHub repository commit/release metadata under the selected credential or unauthenticated client; Read selected container-registry tags/manifests using the process-visible Docker keychain; Caller-selected repository/image inputs and enterprise URL overrides require host-level egress and credential controls; No file-writing tool in the inspected handlers; any host editor, registry credential helper or transitive-library behavior is a separate boundary
Cost boundary: Apache-licensed source. Registry/API limits and host/container operating costs are separate; no paid plan or free-service guarantee was verified.
Licence: Apache-2.0 — https://github.com/safedep/pinner-mcp/blob/095b2c0285684f54efae7dd9ae32e23c9a32665a/LICENSE

#### Component limitations

- A digest or commit identifies content; it is not a signature, attestation, SBOM, vulnerability verdict or proof the content is safe.

- The Docker version handler reverses the registry tag list and truncates it. It does not sort semantically or establish that the first result is the newest release.

- Container references are caller-controlled and no registry allowlist appears in the handlers. Docker authentication uses DefaultKeychain; restrict available credentials and egress outside the server.

- The README uses a mutable latest image. Its relationship to the reviewed commit, image signatures and packaged bytes was not verified; no installation command or config is promoted by this packet.

- The Dockerfile has no USER instruction. Source-level read handlers do not constitute a least-privilege container or a sandbox certification.

#### Not runtime-verified

- No dependency download, Go compilation, container pull/build/start or host registration

- No MCP initialize, tools/list or tool call

- No GitHub/private-registry authentication or network-restriction test

- No image-to-commit verification, signature/attestation verification, vulnerability scan or transitive dependency audit

## Independent research tasks

- Exposure trace: From the frozen graph and advisory, trace which shipped paths can reach the affected code. Return exposure-map.md with direct/transitive copies, prerequisites and unknown reachability. Do not consume the compatibility review's recommendation.

- Version-delta review: Independently compare the candidate release notes, interfaces, peer requirements and install behaviour against the existing consumers. Return version-delta.md with required adaptations and distinguishing tests, without treating the advisory's fixed-version label as a compatibility result.

## Sequence and verification

1. Freeze package identities, source revisions and advisory dates in upgrade-scope.md. Give both reviewers this scope and enforce read-only source access; supply current advisory evidence rather than asking the security profile to remember affected versions.

2. Reconcile exposure-map.md and version-delta.md into candidate-decision.md. Choose a specific candidate or stop for missing evidence. Separate 'affected dependency present', 'reachable under these conditions' and 'reachability not established'.

3. In the isolated environment, create the smallest dependency and required consumer patch. Respect the install-hook policy and record resolved versions, integrity evidence, graph changes and unexpected files in resolution-receipt.md for the test owner.

4. Run the project-selected checks on the previous and candidate revisions with identical fixtures. Include the advisory-specific regression and affected consumer behaviour. Hand preserved exits, logs and fixture identities to the reviewer as comparison-receipts.md; a failure to start the harness is not a successful negative test.

5. Review the candidate's complete resolved graph for remaining affected copies and test the permitted recovery path. If reverting restores the exposure, describe isolation, disabling the affected feature or a forward fix instead of labelling that revert safe. Record this in recovery-decision.md.

6. Assemble dependency-handoff.md with the patch, source-linked closure table, compatibility exceptions and unresolved cases. The maintainer decides whether to merge and separately authorises any release; a clean scanner report alone cannot close the change.

## Boundaries

- The security-auditor profile supplies source review, not a dependency updater or an exploit certification. Its qualitative severity is not a computed score; current advisories and actual application reachability remain required.

- Map Read, Glob, Grep and optional Bash to the chosen host. The profile's read-only instruction is not enforcement; keep package installation and patch writes with a separately authorised operator in isolation.

- Use synthetic inputs and redacted findings. Do not fetch credentials, execute exploit payloads against production, publish a patch or release packages as part of authoring this recipe. The resource and project tooling have not been tested together.

- Use Pinner only when the dependency or test harness includes GitHub references or container images. Its lookup output is a manual input to the resolution receipt, not a package resolver, file editor, advisory check or signature proof. Setup, credential and registry-egress review remain separate; no automatic integration or execution is implied.

## Expected output

A reviewable dependency patch with advisory-specific closure evidence, consumer regression results and an exposure-aware back-out decision.

## Deliverables

- Dependency patch and resolution receipt identifying every changed direct and transitive dependency.

- Exposure and version-delta dossier with advisory sources and candidate-selection rationale.

- Before/candidate regression receipts with retained failures and untested consumers.

- Maintainer handoff with closure criteria and a recovery decision that does not silently restore the exposure.

## Acceptance checks

- [ ] Inspect every resolved target graph for an affected nested copy; any remaining affected version is explained and blocks an unqualified remediation claim.

- [ ] Check that the installed candidate matches the reviewed package source and integrity record; an unexpected source, checksum or install-hook side effect stops the patch.

- [ ] Run a bounded regression that distinguishes the reported weakness from an ordinary startup failure; retain the previous/candidate observations rather than accepting scanner silence.

- [ ] Exercise changed interfaces and peer-version combinations used by the application; missing symbols, changed defaults or unresolved peer requirements fail compatibility.

- [ ] Repeat a clean resolution with the frozen lockfile; hidden local caches or undeclared dependencies must not be the only reason the candidate passes.

- [ ] Run an unaffected neighbouring feature and inspect output contracts; a patch that closes the advisory but breaks that contract is not ready.

- [ ] Check the recovery decision against the advisory: if it reinstates an exposed version without an approved containment measure, reject it as the default back-out path.

Workflow: https://undominated.ai/workflows/#upgrade-a-risky-dependency
