security-update
Security Update
Workflow
1. Identify Vulnerable Package
Run the audit and note the vulnerable package name, version range, which direct dependency pulls it in, and the recommended safe version:
pnpm audit
2. Check Safe Version Age (minimumReleaseAge)
Before applying any fix, verify the target version was published > 10,080 minutes ago (7 days). This guards against package hijacking / dependency confusion attacks.
Two enforcement layers exist when
minimumReleaseAgeis configured. Ifpnpm-workspace.yamlsetsminimumReleaseAge(e.g.10080for 7 days),pnpm installitself refuses to resolve younger versions. The script below is a complementary pre-check that gives a human-readable age report before you edit manifests. Keep both: the script stops you writing a too-new version; the workspace setting stops you installing one. Note thatpnpm audit --fix(Step 4a) can punch a hole in this by appending tominimumReleaseAgeExclude— see Step 4a.