Skip to content
Skills Library
Programming · Planning

upstream-dependency-fix-priority

/upstream-dependency-fix-priority

Treat dependency-supplied defects by their true upstream status: patch, upgrade or local patch, each with a different valid timeline. Use when the defect is inside a third-party package or library rather than in the first-party codebase

Repository
patchwise ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Treat dependency-supplied defects by their true upstream status: patch, upgrade or local patch, each with a different valid timeline. Use when the defect is inside a third-party package or library rather than in the first-party codebase

Original author description

Treat dependency-supplied defects by their true upstream status: patch, upgrade or local patch, each with a different valid timeline. Use when the defect is inside a third-party package or library rather than in the first-party codebase

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 61 lines, 417 words
SKILL.md preview
---
name: upstream-dependency-fix-priority
description: "Treat dependency-supplied defects by their true upstream status: patch, upgrade or local patch, each with a different valid timeline. Use when the defect is inside a third-party package or library rather than in the first-party codebase"
pack: patchwise
version: 1.0.0
category: defensive-security
tags: [dependencies, upgrade, pinning]
---

# Upstream Dependency Fix Priority

> Treat dependency-supplied defects by their true upstream status: patch, upgrade or local patch, each with a different valid timeline

**Use when:** the defect is inside a third-party package or library rather than in the first-party codebase

**Avoid when:** the third-party component ships sealed and unsupported, where the only honest route is replacing it entirely

## Procedure

1. Determine whether upstream has a released fix, an in-flight patch or nothing at all, since these have very different timelines.
2. Pin the vulnerable version only if needed, and freeze deploys from overriding your pinned range.
3. For an available fix, upgrade across the affected range and re-run your reproduction, confirming the exploit no longer lands.
4. For an in-flight patch, apply the local patch only if production risk exceeds the risk of a patch you must maintain yourself.
5. For no fix at all, consider isolating the dependency behind a boundary where the vulnerable path is unreachable from product input.
6. Record the upstream chronology: version, fix status, your dependency range and the date your own patch will retire.

## Signals

- Upgrading the dependency changes other behavior subtly, so the fix requires its own regression sweep rather than a version bump.
- The local patch sequence outruns upstream enough to become the de facto distribution, which means the timeline is now yours.
- Isolation boundaries require several changes at once, and the incomplete boundary is itself a risk if the isolation is partial.
- Upstream's fix version range overlaps other pinned ranges, waiting weeks until the ecosystem resolves them.

## Patterns

**1. Upstream check**

```text
libtron 5.3.2 vulnerable, 5.4.0 patched -> upgrade range app+infra together
```

**2. In-flight patch**

```text
no release yet -> local patch registered + dated: retires when 5.4.0 lands
```

**3. Isolation**

```text
unpatched + confirmed exploitable -> wrap dependency entry points; restrict caller-facing path
```

## Pitfalls

- Upgrading by version number alone without rerunning the reproduction, since aliasing defects frequently survive version bumps.
- Emitting local patches without a retire plan, which quietly overtakes the maintenance year ahead of you.
- Failing to freeze automatic deploys, which reintroduces the vulnerable version on the next nonmanual deploy.

## Done when

- The upstream status is documented and the chosen route (upgrade, patch, isolate) is recorded as a follow-up with its timeline.
- The final dependency state has been verified against the reproduction, not merely by reading a changelog.

## References

- [OWASP Dependency-Check](https://owasp.org/www-project-dependency-check/)
- [SBOM CISA guidance](https://www.cisa.gov/sbom)

Versions

The database has no other skills named upstream-dependency-fix-priority.

Database snapshot: 13.11.2026 · package version 7bc4df313aac (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90dependency-upgrade
    Use when a ticket bumps, adds, or removes a dependency — a security advisory, a major-version upgrade, a lockfile refresh, a Dependabot follow-up — and the change must be proven safe with the repo's tests and the upstream changelog, not assumed. Invoke for "upgrade X to v4",…
  • 100upstream-pr
    Send a change to upstream qm without leaking organization-specific context. Use when asked to "upstream this", "open a PR against qm", "contribute this back", or when a fix made in a private fork belongs in core qm.
  • 90dead-end-check
    Break out of a fix-and-fail loop, and avoid walking into one. Decide whether a failure belongs to your own code, a dependency or environment constraint, an upstream or platform capability limit, or the requirement itself — before writing another patch; and decide whether the…
  • 90dependency-absorption
    Apply when replacing a third-party package with code of our own, removing an adapter or wrapper library, auditing a package's upstream issue tracker, turning an absorbed seam into a workspace package, or replacing a package whose output is an interface a person sees. Esposter's…
  • 100dependency-upgrade
    Upgrade a Python or JS dependency safely. Given a library name, finds the latest safe version, reviews the changelog, assesses impact based on how the library is used in the repo, performs the upgrade, and creates a PR with the changelog and assessment. Use this whenever someone…
  • 98check-third-party-docs
    Refresh this repo's cached upstream/third-party docs and propose improvements to the local skills/docs that wrap those tools. Use when the user says 'check for updated third party docs', 'check for updated third-party docs to improve our docs', 'refresh the cached docs', or 'sync upstream docs'.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.