Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

reactphp/dns
3.x @ 9b78ea6
1
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Weak PRNG: 1 prior fix. Scrutinize any change in this area.
Query/Executor.php: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Weak PRNG: The use of predictable random number generation (such as standard rand()) for DNS transaction IDs exposes the client to DNS spoofing and cache poisoning attacks, as attackers can guess upcoming transaction IDs and forge malicious responses. This was mitigated by restricting the identifier space and switching to mt_rand().