Rust advisories / wee_alloc
Unmaintained CriticalRUSTSEC-2022-0054 · wee_alloc
RUSTSEC-2022-0054: wee_alloc is Unmaintained
Short answerNot a bug report: wee_alloc is no longer maintained, so future security issues will not be fixed. Plan to move to a maintained alternative.
| Crate | wee_alloc |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | Critical (GitHub rating) |
| Published | 2022-05-11 |
| Last changed | 2023-11-08 |
| Also known as | GHSA-rc23-xxgq-x27g |
What to do
- Look for a maintained fork or alternative crate.
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2022-0054"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i wee_alloc.
Details from the advisory
Two of the maintainers have indicated that the crate may not be maintained.
The crate has open issues including memory leaks and may not be suitable for production use.
It may be best to switch to the default Rust standard allocator on wasm32 targets.
Last release seems to have been three years ago.
Possible Alternative(s)
The below list has not been vetted in any way and may or may not contain alternatives;
- Rust standard default allocator on wasm32-target
Honorable Mention(s)
The below may serve to educate on potential future alternatives:
References
- Package: crates.io/crates/wee_alloc
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0054.html
- Report: github.com/rustwasm/wee_alloc/issues/107
- Web: www.reddit.com/r/rust/comments/x1cle0/dont_use_wee_alloc_in_production_code_targeting/
- Report: github.com/rustwasm/wee_alloc/issues/85
- Report: github.com/rustwasm/wee_alloc/issues/106
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?