PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-5087 JJNAPIORK CVE debrief

PAGI::Middleware::Session::Store::Cookie versions up to 0.001003 for Perl insecurely generates random bytes. The module attempts to read from /dev/urandom, and if that fails, it uses the built-in rand function, which is unsuitable for cryptographic applications. This affects the generation of an initialization vector (IV) for encrypting session data stored in cookies, potentially making it easier for attackers to decrypt and tamper with session data.

Vendor
JJNAPIORK
Product
PAGI::Middleware::Session::Store::Cookie
CVSS
HIGH 7.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-03-31
Original CVE updated
2026-07-24
Advisory published
2026-03-31
Advisory updated
2026-07-24

Who should care

Users of PAGI::Middleware::Session::Store::Cookie version 0.001003 or earlier, especially those in environments where session data security is critical, such as operators managing affected deployments, platform administrators, vulnerability management teams, and security teams responsible for ensuring the secure handling of session data.

Technical summary

The PAGI::Middleware::Session::Store::Cookie module for Perl generates random bytes insecurely. It attempts to read bytes from /dev/urandom. If this fails, such as on systems without this device (e.g., Windows), it falls back to using the built-in rand function. This fallback is unsuitable for cryptographic applications, such as generating an initialization vector (IV) for cookie encryption. A predictable IV can facilitate the decryption and tampering of session data stored in cookies.

Defensive priority

High priority due to the potential for session data tampering and decryption.

Recommended defensive actions

  • Upgrade to a version of PAGI::Middleware::Session::Store::Cookie that securely generates random bytes.
  • Use Crypt::URandom if available, or consider alternative secure random number generators.
  • Implement additional security measures to protect session data, such as using secure protocols for data transmission.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.

Evidence notes

The CVE record and NVD details indicate that the module does not securely generate random bytes, relying on /dev/urandom or the insecure rand function. The insecure random byte generation affects the encryption of session data in cookies.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-5087 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-5087

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-5087 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-5087

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://metacpan.org/release/JJNAPIORK/PAGI-Middleware-Session-Store-Cookie-0.001003/source/lib/PAGI/Middleware/Session/Store/Cookie.pm

    9b29abf9-4ab0-4765-b253-1875cd9b441e - Broken Link

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://metacpan.org/release/JJNAPIORK/PAGI-Middleware-Session-Store-Cookie-0.001004/changes

    9b29abf9-4ab0-4765-b253-1875cd9b441e - Release Notes

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.