Explore

Rule Explorer

Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.

Public rules
4797
Downloads
12.1M
Verified
4797
Authors
2
Search the rule indexUse CVE, GHSA, CWE, language, framework, package, or rule slug.
20 rules matched. Showing 20 loaded rules.
Publish rule
CVE-2026-81852: Components Layouts Ex Cwe 000 Cve 2026 81852cve-2026-81852-components-layouts-ex-cwe-000-cve-2026-81852

A hardcoded string constant is being used as a Content Security Policy (CSP) nonce. CSP nonces must be cryptographically random and unique per request. Hardcoded or predictable nonces allow attackers to bypass CSP script execution protections.

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
74quality
CVE-2026-76956: Getentropy Inverted Bool Returncve-2026-76956-getentropy-inverted-bool-return

getentropy() returns 0 on success and -1 on error. Directly assigning or casting its return value to a boolean inverts the success check, treating success (0) as false and failure (-1) as true. Check for success explicitly with `getentropy(...) == 0`.

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
65quality
CVE-2026-73567: Jsbn Insecure Securerandomcve-2026-73567-jsbn-insecure-securerandom

Importing SecureRandom from 'jsbn' is cryptographically insecure in non-browser environments like Node.js because jsbn falls back to an ARC4 PRNG seeded with Math.random() and timestamps. Use Node's crypto module or globalThis.crypto instead.

by Provallyupdated 2026-09-02Apache-2.0
1.3K0 direct1.3K via packs
downloads
65quality
CVE-2026-53514: Predictable Mongodb Objectidcve-2026-53514-predictable-mongodb-objectid

MongoDB `ObjectId`s are predictably generated based on a timestamp, process ID, and counter. When used as primary identifiers (`id` or `_id`) in systems that assume these IDs are opaque and unguessable (like invitation tokens, session IDs, or password reset links), attackers can predict them and bypass authorization. Replace `new ObjectId()` with explicitly

by Provallyupdated 2026-09-02Apache-2.0
1.3K0 direct1.3K via packs
downloads
68quality
CVE-2026-46684: Weak Jwt Secret Derivation Md5cve-2026-46684-weak-jwt-secret-derivation-md5

Deriving a JWT secret key using an MD5 hash restricts the key's entropy to at most 128 bits and can make tokens vulnerable to offline forgery attacks, especially if the hashed input (like a password) is predictable. Use a cryptographically secure random value generation (e.g., SecureRandom or UUIDs) for symmetric signature secrets.

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
72quality
CVE-2026-45783: Kademlia Dht Sybil Predictable Pathscve-2026-45783-kademlia-dht-sybil-predictable-paths

Directly extracting the exact 'd' closest peers from the routing table for Kademlia DHT disjoint paths leaves the lookup vulnerable to Sybil/Eclipse attacks. If an attacker controls the 'd' closest node IDs, they will intercept and control all query paths. Fix this by retrieving a wider pool of closest peers (e.g., `kBucketSize`) and drawing from it probabil

by Provallyupdated 2026-06-23Apache-2.0
3K0 direct3K via packs
downloads
69quality
CVE-2026-44054: Predictable Session Token From Pidcve-2026-44054-predictable-session-token-from-pid

Generating a session token or credentials directly from a process ID (PID) makes the token highly predictable. Attackers can guess valid tokens to hijack sessions or trigger unauthorized actions. Use a cryptographically secure random number generator (CSPRNG) to generate session identifiers.

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
69quality
CVE-2026-41207: Netty Hpke Unchecked Crypto Returncve-2026-41207-netty-hpke-unchecked-crypto-return

Cryptographic operations from underlying libraries are returned directly without checking for failure (e.g., null returns from JNI wrappers or uncaught exceptions). This can cause fallbacks to all-zero keys, leading to deterministic and predictable key material. Properly handle failures by checking for null or catching exceptions and throwing a dedicated Cry

by Provallyupdated 2026-06-12Apache-2.0
3.3K0 direct3.3K via packs
downloads
74quality
CVE-2026-40164: Hardcoded Murmurhash Seedcve-2026-40164-hardcoded-murmurhash-seed

A potentially hardcoded or static seed is used for MurmurHash3 initialization. This makes the hash function predictable and vulnerable to hash collision Denial of Service (DoS) attacks. An attacker can precompute keys that hash to the same bucket, degrading performance to O(n²). Randomize the hash seed using a cryptographically secure pseudo-random number ge

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
69quality
CVE-2026-15226: Insecure Predictable Temp Filecve-2026-15226-insecure-predictable-temp-file

The application manually constructs a temporary file name using a predictable pseudo-random generator and opens it. An attacker can predict the sequence of random values, pre-create the expected file, and cause a denial-of-service or a race condition by forcing the O_EXCL file creation to fail. Use os.CreateTemp, os.MkdirTemp, or cryptographic randomness (cr

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
74quality
CVE-2026-8933: Insecure Custom Temp File Creationcve-2026-8933-insecure-custom-temp-file-creation

Constructing temporary file, link, or directory paths using custom or weak random string generation functions (e.g., math/rand or custom utils) and passing them to file creation APIs like `os.OpenFile`, `os.Symlink`, or `os.Link` is prone to predictability and collision (EEXIST) attacks. This can be exploited to cause a local denial-of-service or privilege e

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
73quality
CVE-2026-8700: Perl Rand For Cryptographic Bytescve-2026-8700-perl-rand-for-cryptographic-bytes

Generating bytes with Perl's built-in rand() (e.g. `chr rand 256`) is insecure for any cryptographic purpose. Perl's rand() is a non-CSPRNG with a small, predictable internal state; bytes derived from it can be reproduced or brute-forced by an attacker. Use an OS CSPRNG such as Crypt::SysRandom::random_bytes(), Crypt::URandom, or Crypt::PRNG instead.

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
70quality
CVE-2025-69286: Insecure Urlsafetimedserializer Token Generationcve-2025-69286-insecure-urlsafetimedserializer-token-generation

Authentication/API token is generated using itsdangerous.URLSafeTimedSerializer keyed by a non-secret value (e.g. tenant_id) and/or signing a predictable payload such as a UUID, with the output being sliced. This treats the serializer as a randomness source instead of a verifiable signed token. URLSafeTimedSerializer produces deterministic base64(payload).ti

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
76quality
CVE-2025-64097: Elixir Insecure Token Generation Base62cve-2025-64097-elixir-insecure-token-generation-base62

A user/session/API token is generated using `:base62.encode/1` without sourcing entropy from `:crypto.strong_rand_bytes/1`. This pattern produces structurally-predictable tokens (especially when combined with HMAC over user-identifiable inputs) that are brute-forceable or enumerable (CVE-2025-64097, CWE-330). Replace the token body with `:crypto.strong_rand_

by Provallyupdated 2026-06-12Apache-2.0
3.4K0 direct3.4K via packs
downloads
76quality
CVE-2025-40926: Perl Insecure Session Id From Rand Hashcve-2025-40926-perl-insecure-session-id-from-rand-hash

Session/token identifier is derived by hashing the output of Perl's built-in rand(), which is a non-cryptographic PRNG seeded with only ~32 bits and is therefore predictable. Combining it with $$ (PID), time, or stringified references (memory addresses) does not add meaningful entropy, and wrapping the result in a digest (sha1_hex/md5_hex/sha256_hex/...) doe

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
75quality
CVE-2025-40924: Perl Weak Entropy Seed Generationcve-2025-40924-perl-weak-entropy-seed-generation

Generating session seeds or cryptographic tokens using weak sources of entropy like `time` and `rand` leads to highly predictable values. An attacker can brute-force or correlate these inputs to guess the final output, leading to session hijacking. Use a true CSPRNG (e.g., Crypt::SysRandom or Math::Random::Secure) instead.

by Provallyupdated 2026-06-12Apache-2.0
3.3K0 direct3.3K via packs
downloads
63quality
CVE-2025-15604: Perl Insecure Random Rand Into Hashcve-2025-15604-perl-insecure-random-rand-into-hash

Perl's built-in rand() is being fed into a cryptographic hash (SHA-1/SHA-256/SHA-512/MD5) to derive bytes. rand() is seeded with at most 32 bits and is not a CSPRNG, so hashing it (optionally with $$, Time::HiRes::time, or other low-entropy values) does not produce cryptographically strong output. This pattern produces predictable session IDs, CSRF tokens, a

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
75quality
CVE-2024-58134: Mojolicious Insecure Secret Generationcve-2024-58134-mojolicious-insecure-secret-generation

Mojolicious applications and framework code should not use the predictable application moniker or insecure PRNGs like `rand` to generate session secrets or CSRF tokens. This allows an attacker to compute valid HMAC signatures and forge session cookies. Replace predictable secrets with strong cryptographic random strings (e.g. `Mojo::Util::urandom_urlsafe`).

by Provallyupdated 2026-06-12Apache-2.0
3.5K0 direct3.5K via packs
downloads
63quality
CVE-2024-5300: Insecure Temp File Creationcve-2024-5300-insecure-temp-file-creation

Constructing temporary files manually using random strings is vulnerable to predictable temp file collision attacks (Insecure Temporary File). An attacker who can predict the target path and pseudorandom component can pre-create the file and trigger Denial of Service or unauthorized access. Use standard secure temp file creation utilities like `os.CreateTemp

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
74quality
CVE-2023-45236: Predictable Tcp Isncve-2023-45236-predictable-tcp-isn

Predictable TCP Initial Sequence Number (ISN) generation detected. Generate ISNs using a cryptographically secure pseudo-random number generator (CSPRNG) or a secure hash that incorporates connection parameters and a secret key, as recommended by RFC 9293. Incrementing a variable to compute the ISN makes it predictable, rendering the stack susceptible to TCP

by Provallyupdated 2026-06-12Apache-2.0
3.3K0 direct3.3K via packs
downloads
72quality
All matching rules loaded.