Severity
Medium
Short Description
Package has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Suggestion
Packages should specify properly semver ranges to avoid version conflicts.
The Wildcard Dependency alert aims to give users greater visibility into packages that have dependencies with a floating version range. Wildcards are often used for convenience, and are especially common in open source projects and early-stage projects or fast-evolving environments, where developers aim to stay up-to-date with the latest features or bug fixes.
Some of the potential risks of Wildcard dependencies include the following:
1. Use Exact Versions
2. Avoid Wildcards and Loose Versioning
3. Be Cautious with Caret (^) and Tilde (~) Ranges
4. Use package-lock.json
5. Semantic Versioning (SemVer)
Here's an example of a package flagged for having a Wildcard dependency:

The alert links to where the dependency is listed in package.json.
This is another example where a floating version range was flagged:

The Wildcard Dependency alert flags any package that has a dependency with a floating version range. It’s a medium-severity alert, because the behavior isn’t malicious but does introduce some security concerns. It flags any packages with dependencies that match the following:
In essence, these patterns are flagged because they allow for installing any version without strict control. Because wildcards can lead to unpredictable updates, they're often discouraged in critical systems. In these cases, you may want to update your security policy to monitor or warn.