Nervos CKB node panics when processing a block which parent timestamp is too newGHSA-hjqq-29pw-96wj
Fix: nervosnetwork/ckb@ae3c791GHSA-hjqq-29pw-96wj is a security vulnerability in ckb. A fix is available for ckb — see the affected versions and patch details below.
Real-World Exposure
ckb🦀ckbReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Adversary can initiate DOS attack by broadcasting two consecutive blocks with timestamps in the future.
Patches
Please upgrade to v0.34.1
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | ckb | ≥ 0.33.0&&< 0.33.2 | 0.33.2cargo update -p ckb --precise 0.33.2 |
| 🦀crates.io | ckb | ≥ 0.34.0&&< 0.34.1 | 0.34.1cargo update -p ckb --precise 0.34.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ckb, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update ckb to 0.33.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hjqq-29pw-96wj is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is GHSA-hjqq-29pw-96wj in your dependencies?
Find it across crates.io, including transitive dependencies.