google-chat-api
Warn
Audited by Socket on Sep 4, 2026
1 alert found:
SecuritySecuritytemplates/bearer-token-verify.ts
MEDIUMSecurityMEDIUM
templates/bearer-token-verify.ts
This module’s non-production verifier (used by the exported middleware) does not verify the JWT signature; it only checks payload.iss and payload.exp. If deployed with this wrapper as-is for authorization, an attacker could forge a token that passes these checks and gain access. A stronger signature-verified implementation exists in the same file, but it is not the function enforced by the middleware. No direct malware indicators are present in this code fragment; the security risk is primarily an authentication/authorization bypass due to missing cryptographic verification in the active path.
Confidence: 78%Severity: 72%
Audit Metadata