Vulnerability remediation without upgrades: Socket adds fix PRs
Socket Zero brings vulnerability remediation PRs to GitHub. Keeping your dependency version still means reviewing a real code change.

Vulnerability remediation can now arrive as a GitHub pull request without a dependency upgrade. Socket's December 4 announcement adds automated remediation PRs to Socket Zero: targeted patches for existing versions, dependency upgrades, or a policy that tries patches first. Developers still decide what to merge.
The useful promise is separating an urgent security fix from a larger migration. The catch is just as practical: keeping a version number does not mean keeping the installed code unchanged. Review the replacement package, installation settings and application behavior with the same care you would give an upgrade.
Socket's firsthand launch post frames the feature as continuously preparing fixes across GitHub repositories. That is the claim to evaluate against your build and review process.
Vulnerability remediation now has two different review jobs
Socket says it maintains one rolling patch PR per repository, adding applicable fixes to that change. Upgrade PRs instead address individual advisories. Its three automation choices are patch only, upgrade only, and patch with an upgrade fallback. The announcement describes both workflows.
Those choices should produce different review questions:
| Path | Question for the application owner | Evidence to request |
|---|---|---|
| Targeted patch | Does this fix the affected behavior while preserving what our application needs? | Patch diff, advisory mapping, installation changes and relevant tests |
| Dependency upgrade | Can we adopt the fixed release with its other changes? | Release notes, dependency diff and compatibility tests |
| Patch with upgrade fallback | Which path did this particular PR actually take? | An explicit method and review checklist for that method |
Our recommendation is to make the remediation method visible in the review template. A generic “security update” label leaves the reviewer guessing whether to investigate a migration or a replacement artifact. That distinction matters most when the team has deliberately postponed a major dependency upgrade.
Consider an older service with a regression suite built around a library's existing behavior. A targeted fix could let its owner address the vulnerable operation while scheduling broader compatibility work separately. That is a useful engineering option. It is still a production code change, so the acceptance criterion should describe the behavior the service must retain.
The version can stay while the package source changes
The inspectable Socket Patch repository explains how delivery works. Hosted mode updates dependency files and requires access to Socket's patch server. Vendored mode commits patched dependencies. Agent mode applies patches after installation. The README also warns that finding no available patches does not establish that a project has no vulnerabilities.
The important consequence is a change in what your build consumes. A version-only comparison is an incomplete review tool for this workflow. Ask where the package comes from, how its content is pinned, and whether a clean build can obtain the same artifact.
For npm specifically, the official lockfile documentation describes package entries containing version, resolved and integrity. The latter fields help identify the package source and integrity information. An unchanged version should therefore prompt a look at those other fields before anyone calls the dependency unchanged.
Keep the operational decision explicit. If the team chooses hosted delivery, test the production build's actual network route and access policy. If someone proposes vendoring instead, assess the committed artifacts and repository workflow separately. A successful install on a developer's laptop does not answer whether the release builder can reproduce it.
Also retain evidence of the specific fix alongside the dependency inventory. A future reviewer should be able to connect the application build to the patched artifact and the advisory it addresses. A bare version string cannot tell that whole story.
Check access and automation limits before enabling everything
According to the launch announcement, patch PRs support npm, PyPI, RubyGems and Go. Upgrade PRs additionally support Maven, NuGet and Cargo. Free users can automate free critical patches; upgrade PRs require Team or higher, with broader patch access through an add-on.
The remediation documentation requires GitHub App Contents and Pull requests write permissions. Both methods need private code access. Socket says it temporarily clones repositories into isolated sandboxes and deletes clones after a PR opens or an attempt fails. Enterprise organizations need the Private code access add-on.
Treat that as an onboarding decision for the repository owner. Confirm the installed app's access and the organization's handling requirements before selecting a portfolio of repositories. The feature prepares changes inside a service-operated workflow, so the decision involves more than choosing which alerts deserve attention.
There are also documented operational boundaries: an organization can have ten upgrade PRs open or being prepared; patch PRs are excluded. An automated upgrade attempts each repository/advisory pair once. Failed or declined attempts need manual follow-up. Incomplete lockfile regeneration can produce a draft PR, and partial upgrades can leave vulnerable versions behind. Socket documents these cases.
Assign an owner to exceptions before rolling out the automation. A dashboard full of attempted fixes is useful only if someone distinguishes an actionable PR from unfinished work. Review the remaining vulnerable instances, rather than assuming that the existence of a remediation branch closes the finding.
A copyable audit for unchanged npm versions
Here is our original review aid. Run it from the npm project root after checking out the proposed PR commit. Set AUDIT_BASE to the fetched target-branch commit or other known comparison point. It reads the two committed lockfiles using git show; it does not install packages or execute dependency scripts.
AUDIT_BASE=origin/main node --input-type=module <<'JS'
import { execFileSync } from 'node:child_process';
const base = process.env.AUDIT_BASE;
if (!base) throw new Error('Set AUDIT_BASE to the comparison commit');
const read = ref => {
const lock = JSON.parse(execFileSync('git', [
'show', `${ref}:package-lock.json`
], { encoding: 'utf8' }));
if (![2, 3].includes(lock.lockfileVersion) || !lock.packages) {
throw new Error('This audit requires an npm v2 or v3 lockfile');
}
return lock.packages;
};
const before = read(base), after = read('HEAD');
const paths = new Set([...Object.keys(before), ...Object.keys(after)]);
for (const path of [...paths].sort()) {
if (!path) continue;
const a = before[path], b = after[path];
const referenceChanged = ['resolved', 'integrity'].some(
key => a?.[key] !== b?.[key]
);
if (!a || !b || a.version !== b.version || referenceChanged) {
console.log(JSON.stringify({ path, before: a?.version ?? null,
after: b?.version ?? null, referenceChanged }));
}
}
JSIf a row has equal before and after versions but referenceChanged: true, inspect that entry's full diff. It identifies a source or integrity-field change worth reviewing. It does not establish who produced the artifact or whether the security fix works.
We tested this command against synthetic Git histories containing an unchanged version with changed source and integrity fields, an upgrade, an added package, a removed package and an unchanged package. It reported the four changes and omitted the unchanged entry. We also checked that it rejects unsupported lockfiles. These were tests of our audit, not a test of Socket's hosted service or its patch effectiveness.
The audit deliberately covers only those three fields. Read the complete PR diff for manifest edits, registry configuration, scripts and other lockfile changes. For a monorepo, run an adapted comparison for each relevant lockfile. Then use the application's normal clean-build and test process to evaluate the proposed change.
What to do
Start with one repository whose owner can review the first PR promptly. Choose a real blocked security fix and write down what makes an upgrade costly. That gives the pilot a concrete question: can this patch address the affected behavior without forcing that migration now?
Define acceptance evidence before enabling the policy. Request the advisory, patch changes, artifact reference and a regression test for the application's affected path. Preserve the current release's recovery procedure and identify who decides whether the change is ready for production.
After the pilot, measure time to a verified, deployed fix. Count unfinished drafts and residual vulnerable dependencies separately from completed remediation. That will tell you whether the automation removed work or merely moved it into another queue.
Use the patch path to buy a safer window for a difficult migration. Keep an owner and a reason for the deferred upgrade. The valuable outcome is an application whose security fix can be explained and reproduced, with its next maintenance decision still visible.


