CVE-2025-21617: Guzzlehttp/oauth subscriber Guzzle OAuth Subscriber Has Insufficient Vulnerability
MODERATECVE-2025-21617 is a MODERATE guzzle oauth subscriber has insufficient vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Guzzlehttp/oauth subscriber libraries in the Packagist ecosystem. The issue involves guzzle oauth subscriber has insufficient nonce entropy. Remediation is available by upgrading affected packages to version 0.8.1.
CVE-2025-21617 at a Glance
How to Fix CVE-2025-21617
To remediate this vulnerability, upgrade all affected Guzzlehttp/oauth subscriber dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade guzzlehttp/oauth-subscriber to 0.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for guzzlehttp/oauth-subscriber
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-21617, inspect your project dependencies for Guzzlehttp/oauth subscriber:
inspect dependencies for guzzlehttp/oauth-subscriber
Analyze the terminal output to locate any version of Guzzlehttp/oauth subscriber in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Guzzlehttp/oauth subscriber, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-21617 Affected Guzzlehttp/oauth subscriber Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
guzzlehttp/oauth-subscriber
|
Packagist |
< 0.8.1
|
0.8.1
|
References
Frequently Asked Questions
What is CVE-2025-21617?
Which Guzzlehttp/oauth subscriber versions are affected?
What version fixes CVE-2025-21617?
Is guzzlehttp/oauth-subscriber affected?
What CWE is associated with CVE-2025-21617?
How can I check Packagist dependencies for CVE-2025-21617?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-237r-r8m4-4q88",
"modified" : "2026-07-15T21:57:55Z",
"published" : "2025-01-06T19:23:26Z",
"aliases" : [ "CVE-2025-21617" ],
"summary" : "Guzzle OAuth Subscriber has insufficient nonce entropy",
"details" : "### Impact\n\nNonce generation does not use sufficient entropy nor a cryptographically secure pseudorandom source (https://github.com/guzzle/oauth-subscriber/blob/0.8.0/src/Oauth1.php#L192). This can leave servers vulnerable to replay attacks when TLS is not used.\n\n### Patches\n\nUpgrade to version 0.8.1 or higher.\n\n### Workarounds\n\nNo.\n\n### References\n\nIssue is similar to https://nvd.nist.gov/vuln/detail/CVE-2025-22376.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "guzzlehttp/oauth-subscriber"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/guzzle/oauth-subscriber/security/advisories/GHSA-237r-r8m4-4q88"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-21617"
}, {
"type" : "WEB",
"url" : "https://github.com/guzzle/oauth-subscriber/commit/92b619b03bd21396e51c62e6bce83467d2ce8f53"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/oauth-subscriber/CVE-2025-21617.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/guzzle/oauth-subscriber"
}, {
"type" : "WEB",
"url" : "https://github.com/guzzle/oauth-subscriber/blob/0.8.0/src/Oauth1.php#L192"
}, {
"type" : "WEB",
"url" : "https://github.com/guzzle/oauth-subscriber/releases/tag/0.8.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-338" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-06T19:23:26Z",
"nvd_published_at" : "2025-01-06T20:15:39Z"
}
}