defirisk.co
rubric v1.7.0

Upstream patch not merged

A fork / dependency lineage factor in the v1.7.0 rubric. Measured per protocol on a s cadence.

Methodology how we score #

What this measures
This factor checks whether the upstream protocol that this fork descends from has published a known-vulnerability patch since the fork was taken, and whether that patch has been merged into this fork's deployed code. The check compares the fork's deployed bytecode against the upstream's patched bytecode at the relevant function level, and cross-references any public security advisories or GitHub patch commits from the upstream. The data source is GitHub patch history combined with bytecode diffing.

Why it matters
When an upstream protocol patches a vulnerability, all downstream forks that have not merged the patch become known-vulnerable by definition. The attacker's playbook is explicit: exploit the upstream, then scan GitHub for all forks of the same code within hours. AutoShark -- a PancakeBunny fork -- was exploited eight hours after PancakeBunny's original exploit using the identical vector. Merlin Labs (another PancakeBunny fork) was exploited one week later. The Compound fork CEI reentrancy was exploited across four separate protocols over 12 months, each time the same unpatched pattern was present. Upstream patch status is therefore one of the highest-signal leading indicators of imminent exploit risk.

Green / Yellow / Red
Green: no outstanding upstream vulnerability patches exist, or all known upstream patches have been merged into the fork's deployed bytecode and verified by bytecode comparison. Yellow: an upstream patch exists for a medium-severity vulnerability that has not been merged; the fork team has acknowledged the gap and provided a remediation timeline. Red: an upstream patch exists for a high or critical vulnerability that has not been merged into the fork's deployed code, or a sibling fork was exploited via the same pattern within the last 30 days.

Common gray cases
This factor is gray for original protocols with no fork origin (not applicable) and for protocols where the upstream does not maintain a public security advisory or patch trail.

Notable historical examples
- Compound Finance ($147M, 2021): Original; multiple downstream forks failed to merge subsequent CEI patches.
- Fei/Rari Fuse ($80M, 2022): Compound fork; patch to exitMarket() reentrancy was incomplete, leaving an entry point exposed.
- Cream Finance ($18.8M, 2021): Compound fork; CEI reentrancy in borrow() not patched from upstream.
- Sonne Finance ($20M, 2024): Compound V2 fork; donation attack pattern not patched despite upstream disclosure.
- Qubit Finance ($80M, 2022): BSC lending protocol with Compound-adjacent architecture; upstream patching gaps present.

Measurement what to look for #

Determine whether the upstream fork source has published a known-vulnerability patch that has not been merged into this fork's deployed code.

Data & output #

Data source
GitHub diff between upstream main (or security-patch tag) and this fork's deployed commit + upstream security advisory feed
Output format
Green / Yellow / Red
Evidence artifact
Upstream patch commit SHA + this fork's deployed commit SHA + diff URL
Confidence signal
green = all upstream security patches merged; yellow = upstream patch exists but is non-critical for this fork's config; red = critical upstream security patch not merged; gray = upstream not identified (see F126)

Scored protocols 0 carry this factor #

No protocols have been scored for this factor yet.

Linked hacks 25 historical incidents #

related Moonwell — Oracle Misconfiguration (Missing ETH/USD Multiplier) 2026-02-15 · $2M · Oracle Misconfiguration (Missing ETH/USD Multiplier) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound V2 fork]
related Onyx Protocol (2nd incident) — Compound V2 empty-market donation attack — VUSD governance-added market 2024-09-25 · $4M · Compound V2 empty-market donation attack — VUSD governance-added market · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Compound V2 fork]
related Rho Market — Oracle misconfiguration (deployment error) → MEV bot price manipulation → USDC/USDT drain 2024-07-19 · Oracle misconfiguration (deployment error) → MEV bot price manipulation → USDC/USDT drain · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Compound Finance fork]
related Sonne Finance — Compound V2 empty-market donation attack — permissionless governance execution + exchange rate manipulation 2024-05-14 · $20M · Compound V2 empty-market donation attack — permissionless governance execution + exchange rate manipulation · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Compound V2 fork]
related Ionic Money (formerly Midas) — Fake Collateral Listing (Social Engineering → On-chain Exploit) 2024-02-04 · $7M · Fake Collateral Listing (Social Engineering → On-chain Exploit) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Midas was a lending protocol; architecture similar to Compound forks]
related Onyx Protocol — Compound V2 empty-market donation attack — governance-added PEPE market exploited via rounding + exchange rate inflation 2023-10-31 · $2M · Compound V2 empty-market donation attack — governance-added PEPE market exploited via rounding + exchange rate inflation · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound Finance fork]
related Midas Capital — Compound V2 empty-market donation attack — exchange rate inflation + rounding error in redeemUnderlying 2023-06-17 · $600K · Compound V2 empty-market donation attack — exchange rate inflation + rounding error in redeemUnderlying · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound V2 / Fuse fork]
related Atlantis Loans — Governance attack on abandoned protocol — attacker passed malicious proposal granting token contract control, then upgraded to drain addresses with active approvals 2023-06-10 · $3M · Governance attack on abandoned protocol — attacker passed malicious proposal granting token contract control, then upgraded to drain addresses with active approvals · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Likely a Compound/Aave fork (BSC lending)]
related Hundred Finance — ERC-4626-style cToken exchange rate manipulation + rounding error 2023-04-15 · $7M · ERC-4626-style cToken exchange rate manipulation + rounding error · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound V2 fork]
related Kokomo Finance — Insider rug — deployer upgraded implementation to malicious contract → drained WBTC deposits 2023-03-26 · $4M · Insider rug — deployer upgraded implementation to malicious contract → drained WBTC deposits · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound V2 fork]
related dForce Network — Read-Only Reentrancy (Curve wstETH/ETH LP Oracle Manipulation) 2023-02-13 · $4M · Read-Only Reentrancy (Curve wstETH/ETH LP Oracle Manipulation) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Compound fork (dForce lending is Compound-inspired)]
related Midas Capital — Read-only reentrancy on Curve LP token virtual price — inflated collateral valuation 2023-01-15 · $660K · Read-only reentrancy on Curve LP token virtual price — inflated collateral valuation · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound V2 / Fuse fork architecture]
related Lodestar Finance — Oracle Price Manipulation (LP Token Donation) 2022-12-10 · $7M · Oracle Price Manipulation (LP Token Donation) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound fork]
related Sovryn — External call reentrancy via callTokensToSend — token price inflation via mid-transaction mint → overclaim via burn 2022-10-04 · $1M · External call reentrancy via callTokensToSend — token price inflation via mid-transaction mint → overclaim via burn · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — lending pool design influenced by Compound/Aave patterns adapted for RSK]
related Inverse Finance — Oracle Price Manipulation (Flash Loan) 2022-06-16 · $6M · Oracle Price Manipulation (Flash Loan) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Original protocol with Compound-style mechanics]
related Fortress Protocol (lending arm of JetFuel Finance) — Oracle Manipulation + Malicious Governance Proposal 2022-05-09 · $3M · Oracle Manipulation + Malicious Governance Proposal · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — JetFuel Finance / Compound-style lending fork on BSC]
related Fei Protocol / Rari Capital (Fuse) — Re-entrancy via `exitMarket()` in Compound fork missing check-effects-interaction pattern 2022-04-30 · $80M · Re-entrancy via `exitMarket()` in Compound fork missing check-effects-interaction pattern · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Compound Finance fork (Fuse uses modified Compound codebase)]
related Voltage Finance / Ola Finance — ERC677 callAfterTransfer() reentrancy in Compound fork — borrow before balance update 2022-03-31 · $4M · ERC677 callAfterTransfer() reentrancy in Compound fork — borrow before balance update · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — Compound fork (via Ola Finance "Compound-like instance" architecture)]
related Agave DAO + Hundred Finance (dual attack) — ERC677 callAfterTransfer() reentrancy — flash loan collateral → nested borrow calls before debt balance update → multi-asset drain 2022-03-15 · $12M · ERC677 callAfterTransfer() reentrancy — flash loan collateral → nested borrow calls before debt balance update → multi-asset drain · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — both are forks (Aave V2 and Compound respectively)]
related Qubit Finance — Zero-Address safeTransferFrom Logic Bug (Cross-Chain Bridge Deposit) 2022-01-28 · $80M · Zero-Address safeTransferFrom Logic Bug (Cross-Chain Bridge Deposit) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — BSC lending protocol; Compound-adjacent architecture]
related Vee Finance — Pangolin spot price oracle manipulation via custom trading pairs + decimal handling bug 2021-09-21 · $34M · Pangolin spot price oracle manipulation via custom trading pairs + decimal handling bug · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Partially — leveraged trading platform with Compound-style lending influences]
related Cream Finance — ERC-777 Reentrancy (Token Integration Vulnerability) 2021-08-30 · $19M · ERC-777 Reentrancy (Token Integration Vulnerability) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Cream Finance is a fork of Compound Finance]
related Cream Finance — ERC777 reentrancy via newly integrated AMP token — reentrant `borrow()` before state update 2021-08-30 · $19M · ERC777 reentrancy via newly integrated AMP token — reentrant `borrow()` before state update · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked: Compound V2 fork]
related Punk Protocol — Unprotected initialize() — delegateCall Forge Address Override 2021-08-10 · $9M · Unprotected initialize() — delegateCall Forge Address Override · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Yes — built on Compound infrastructure]
related EasyFi (Easy Network) — Admin key theft via compromised machine (malicious MetaMask binary) 2021-04-19 · $59M · Admin key theft via compromised machine (malicious MetaMask binary) · Upstream Compound has patches that may not be merged here [via dashboard_risk_factors/Forked?: Y — Compound Finance fork]
rubric_version v1.7.0 factor RD-F-127 category 8 carried 0 critical no