Security context

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

thephpleague/oauth2-client
master @ 4902949
4
Fixes
0
CVEs
MEDIUM
Peak severity
100.0%
Coverage
Highlights
Information Disclosure: 2 prior fixes. Scrutinize any change in this area.
src/OAuth2/Client/Provider/Facebook.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.

Information Disclosure: Constructing an AccessToken with invalid parameters triggered an exception containing a printed dump of all options, leaking sensitive client secrets or tokens into error logs. Developers should ensure exception messages do not serialize raw array options.
Information Disclosure: Requesting user profile pictures or assets from third-party identity providers can leak the user's active OAuth2 access token via redirect URLs or graph queries. Implementing servers-side resolution of redirects ensures downstream clients receive clean, token-free URLs.
HTTP Header Injection: Generating MAC headers using multiline separators enabled newline injection in HTTP headers, potentially facilitating request splitting or response smuggling in HTTP clients conforming to older specifications.