Partial read is incorrect in moleculeGHSA-82hm-vh7g-hrh9
Fix: nervosnetwork/molecule#49GHSA-82hm-vh7g-hrh9 is a security vulnerability in molecule. A fix is available for molecule — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
moleculeReal-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
Anyone who uses total_size(..) function to partial read the length of any FixVec will get an incorrect result, due to an incorrect implementation. This has been resolved in the 0.7.2 release.
Workarounds
If you already have the whole FixVec A, you can use A.as_slice().len() to get the total size of the FixVec.
For more information
If you have any questions or comments about this advisory:
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | molecule | all versions | 0.7.2cargo update -p molecule --precise 0.7.2 |
Affected Products
moleculenervosDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for molecule, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update molecule to 0.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-82hm-vh7g-hrh9 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-82hm-vh7g-hrh9 in your dependencies?
Find it across crates.io, including transitive dependencies.