@grantjs/server
Server SDK for Grant authorization - Middleware and guards for Express, Fastify, NestJS, and Next.js
This report shows the evidence for @grantjs/server@1.22.0. 1 of 40 known versions is blocked or flagged. The newest version, 1.25.0, is allowed. See all versions.
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 · L138The package is an authorization SDK whose middleware invokes these checks for protected requests.
package.jsonView on unpkg · L1The package is an authorization SDK whose middleware invokes these checks for protected requests.
package.jsonView on unpkg · L100Findings
Affected versions and remediation
This report applies to @grantjs/server@1.22.0.
The versions list below shows the verdict for each recorded version.
- 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.