[medium] oauth-patterns: OAuth flow without PKCE #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
medium Finding
Scanner: oauth-patterns
Severity: medium
Rule: oauth-missing-pkce
Description
Authorization code flow should use PKCE (code_challenge/code_verifier) for public clients.
Location
File:
librechat/openidStrategy.js(line 685)Code
Remediation
Add PKCE support by implementing code_challenge and code_verifier parameters in the OAuth flow. Modify the clientMetadata to include PKCE requirements and ensure the authorization code exchange includes proper challenge validation.
Fingerprint:
7301979b0eeb613943678c3b0dddccdc50c10e7bf454740617b2685ae3e95091Generated by compliance-scanner
Labels: severity:medium, scanner:oauth-patterns, compliance-scanner