{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-5087 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-5087 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-5087 is a high-severity vulnerability in JJNAPIORK PAGI::Middleware::Session::Store::Cookie, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-5087 and fix it if it is affected.\n\nWhat it is: CVE-2026-5087 is a high-severity vulnerability in JJNAPIORK PAGI::Middleware::Session::Store::Cookie, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-5087 in the wild and no public exploit code.\n\nAffected product: JJNAPIORK PAGI::Middleware::Session::Store::Cookie. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-5087/ (Markdown: https://insights.sbomify.com/CVE-2026-5087/index.md)","id":"CVE-2026-5087","markdown":"https://insights.sbomify.com/CVE-2026-5087/index.md","name":"CVE-2026-5087","record":{"aliases":["GHSA-r6mr-wmgj-f864"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl session middleware","requires_auth":"none","summary":"Insecure random number generation for session cookie IVs allows attackers to decrypt and tamper with session data.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"pagi\\","vendor":"jjnapiork"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-1204","name":"Generation of Weak Initialization Vector (IV)"}],"description":"PAGI::Middleware::Session::Store::Cookie versions through 0.001003 for Perl generates random bytes insecurely.\n\nPAGI::Middleware::Session::Store::Cookie attempts to read bytes from the /dev/urandom device directly. If that fails (for example, on systems without the device, such as Windows), then it will emit a warning that recommends the user install Crypt::URandom, and then return a string of random bytes generated by the built-in rand function, which is unsuitable for cryptographic applications.\n\nThis modules does not use the Crypt::URandom module, and installing it will not fix the problem.\n\nThe random bytes are used for generating an initialisation vector (IV) to encrypt the cookie.\n\nA predictable IV may make it easier for malicious users to decrypt and tamper with the session data that is stored in the cookie.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"PAGI::Middleware::Session::Store::Cookie versions through 0.001003 for Perl generates random bytes insecurely","id":"CVE-2026-5087","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"weak_cryptography","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts","id":"CVE-2026-5088"},"packages":[],"prev":{"headline":"Crypt::SecretBuffer versions before 0.019 for Perl is suseceptible to timing attacks","id":"CVE-2026-5086"},"products":["PAGI::Middleware::Session::Store::Cookie"],"published":"2026-03-31","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-01","vendors":["JJNAPIORK"]},"summary":"Insecure random number generation for session cookie IVs allows attackers to decrypt and tamper with session data.","url":"https://insights.sbomify.com/CVE-2026-5087/"}