# RUSTSEC-2026-0218 - `Enum` trait allows type confusion when manually implemented

Source: https://junglewise.ai/threats/rustsec-2026-0218-enum-trait-allows-type-confusion-when-manually-8d3b9632  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-21  
License: CC BY 4.0 with a link back

Severity: info · Published 2026-07-21

`Enum` trait allows type confusion when manually implemented

Technologies: [enum-map (crates.io)](https://junglewise.ai/threats/technologies/enum-map). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 21 July 2026.

**Which products and versions are affected?** enum-map (crates.io) SEMVER:introduced=3.0.0-0.gat.0,fixed=3.1.0.

**Is there a fix for This vulnerability?** Yes. enum-map (crates.io): upgrade to 3.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run enum-map (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- enum-map (crates.io): upgrade to 3.1.0 or later

  ```sh
  cargo update -p enum-map
  ```


## Affected products

- enum-map (crates.io) SEMVER:introduced=3.0.0-0.gat.0,fixed=3.1.0

## Related threats

- [enum_map macro can cause UB when `Enum` trait is incorrectly implemented](https://junglewise.ai/threats/enum-map-macro-can-cause-ub-when-enum-trait-is-incorrectly-implemented-f935a406)
- [RUSTSEC-2022-0010 - enum_map macro can cause UB when `Enum` trait is incorrectly implemented](https://junglewise.ai/threats/rustsec-2022-0010-enum-map-macro-can-cause-ub-when-enum-trait-is-0fc2354e)
