@grantjs/server@1.22.0
Server SDK for Grant authorization - Middleware and guards for Express, Fastify, NestJS, and Next.js
AI Security Review
scanned 5d ago · by lpm-firewall-aiThe client sends the complete inbound Cookie header to the configured Grant API during authorization checks, potentially exposing unrelated session credentials. This exceeds the SDK’s need to transmit its extracted Grant token and is credential exfiltration.
Decision evidence
public snapshot- GrantClient sends authorization checks as POST requests to the configured Grant API.
- When a request has a Cookie header, the client forwards the entire header to that API, alongside the extracted Grant token.
- The package is an authorization SDK whose middleware invokes these checks for protected requests.
- The destination API URL is supplied by the application, and the example uses Grant’s API.
- Cookie and bearer-token support are part of the documented authorization purpose.
- The manifest has no install or lifecycle scripts.
Source & flagged code
4 flaggedWhen a request has a Cookie header, the client forwards the entire header to that API, alongside the extracted Grant token.
dist/grant-client-1Cd2jhvZ.jsView on unpkg · L179GrantClient sends authorization checks as POST requests to the configured Grant API.
dist/grant-client-1Cd2jhvZ.jsView on unpkg · L138Findings
Affected versions and remediation
This report applies to @grantjs/server@1.22.0.
See all versions of @grantjs/server for other recorded verdicts.
- Avoid installing @grantjs/server@1.22.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.