GHSA-48m6-wm5p-rr6h — self_cell
GHSA-48m6-wm5p-rr6h is a security vulnerability in self_cell. A fix is available for self_cell — see the affected versions and patch details below.
Insufficient covariance check makes self_cell unsound
Real-World Exposure
self_cell🦀self_cellReal-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
All public versions prior to 1.02 used an insufficient check to ensure that users correctly marked the dependent type as either covariant or not_covariant. This allowed users to mark a dependent as covariant even though its type was not covariant but invariant, for certain invariant types involving trait object lifetimes. One example for such a dependent type is type Dependent<'a> = RefCell<Box<dyn fmt::Display + 'a>>. Such a type allowed unsound usage in purely safe user code that leads to undefined behavior. The patched versions now produce a compile time error if such a type is marked as covariant.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | self_cell | all versions | 0.10.3cargo update -p self_cell --precise 0.10.3 |
| 🦀crates.io | self_cell | ≥ 1.0.0&&< 1.0.2 | 1.0.2cargo update -p self_cell --precise 1.0.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for self_cell, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update self_cell to 0.10.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-48m6-wm5p-rr6h 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.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-48m6-wm5p-rr6h can be triaged on real exposure rather than presence alone.
Tailored to GHSA-48m6-wm5p-rr6h. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-48m6-wm5p-rr6h in your dependencies?
O3 Security finds GHSA-48m6-wm5p-rr6h across crates.io dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.