spring-boot-security-jwt

Warn

Audited by Socket on Sep 15, 2026

9 alerts found:

Securityx5Anomalyx4
SecurityMEDIUM
references/configuration.md

No clear malicious behavior, backdoor, credential theft, or unauthorized network exfiltration is present. The configuration has meaningful security risks: hardcoded fallback JWT secret, insecure cookie default, disabled audience validation, plaintext RSA private-key storage, weakened CSP, potentially unsafe CSRF exclusions, broad credentialed CORS, and conflicting security/session configurations. These should be corrected before production use.

Confidence: 96%Severity: 72%
AnomalyLOW
references/token-management.md

The code is legitimate token and session-management code with no apparent malware, exfiltration, backdoor, or sabotage. The main security risks are plaintext refresh-token storage, incomplete token-reuse protection under concurrency, non-enforced IP mismatch handling, partial blacklist semantics, weakened CSP through unsafe-inline, and non-distributed rate limiting. These warrant review and remediation but do not indicate malicious package behavior.

Confidence: 96%Severity: 63%
AnomalyLOW
references/oauth2-integration.md

The supplied code appears to implement legitimate OAuth2 functionality and contains no clear malware or intentional supply-chain backdoor. It has notable security risks: raw access tokens are placed in cache keys, administrator-supplied OAuth URLs may enable SSRF or credential leakage if not allowlisted, and client secrets may be exposed through persistence or the response unless explicitly protected. Sensitive OAuth state and personal data are also written to audit logs. Further review of validation, cache configuration, serialization, secret storage, and outbound-request enforcement is required.

Confidence: 93%Severity: 67%
SecurityMEDIUM
references/jwt-complete-configuration.md

The fragment is a JWT/Spring Security configuration guide and shows no evidence of malware, data theft, backdoors, or sabotage. It does contain meaningful security risks: a predictable fallback signing secret, global CSRF disabling alongside cookie authentication, ambiguous token/key-rotation handling, unverified claim parsing for blacklist TTLs, and unsafe production logging guidance. The fallback secret must fail closed in production, and cookie-based authentication requires CSRF protection or an equivalent defense.

Confidence: 97%Severity: 72%
SecurityMEDIUM
references/authorization-patterns.md

No direct evidence of malware, data theft, backdoors, or supply-chain sabotage is present. The code has a high security risk as an authorization component because database-controlled SpEL is evaluated with a potentially permissive context, DENY and target policy fields are ignored, empty policies permit access, and hierarchy recursion lacks cycle protection. Restrict SpEL evaluation or replace it with a non-executable rule language, enforce policy effects and target conditions, reject empty policies, validate authentication and inputs, and add cycle detection before production use.

Confidence: 97%Severity: 82%
AnomalyLOW
references/microservices-security.md

No clear malicious behavior or supply-chain malware is present in the shown fragment. The main security risk is potential identity spoofing because x-forwarded-user and x-forwarded-groups are trusted without visible proxy-origin validation. Fallback token validation and sensitive token/event handling require review of their implementations and deployment controls. Treat forwarded headers as trusted only when guaranteed to be set by an authenticated proxy and stripped from untrusted requests.

Confidence: 90%Severity: 62%
SecurityMEDIUM
references/performance-optimization.md

The fragment appears to be legitimate JWT performance and infrastructure code, not intentionally malicious code. However, CachingJwtDecoder has a high-impact authentication flaw because it excludes the JWT signature from the cache key and skips revalidation on cache hits. Do not use this cache design unless the complete token or a cryptographically bound digest is used as the key and revocation semantics are addressed. Also avoid storing raw refresh tokens, never use unverified parsed claims for authorization, remove token logging, constrain decompression, and secure Actuator endpoints. The code shows no clear malware indicators or obfuscation.

Confidence: 98%Severity: 82%
SecurityMEDIUM
references/jwt-configuration.md

No clear malicious behavior is present. The code is intended to implement JWT authentication, but it has significant security and correctness concerns: weak hardcoded fallback secrets, plaintext refresh-token storage, local private-key file generation, incomplete certificate generation, conflicting bean definitions, and inconsistent custom validation that rejects generated access tokens. Replace all defaults with securely injected secrets, protect and rotate keys, hash or otherwise protect refresh tokens, explicitly configure one algorithm/key strategy, and correct the decoder and validator wiring before production use.

Confidence: 98%Severity: 72%
AnomalyLOW
assets/generate-jwt-keys.sh

The fragment is a local JWT key-generation utility with no clear malicious behavior or supply-chain backdoor. It has significant security and correctness issues: insecure default credentials, plaintext password storage, command-line password exposure, inconsistent certificate formats, and likely-invalid JWK modulus generation. Inputs are partly controllable through environment variables, but no network exfiltration, arbitrary code execution, or destructive behavior is present.

Confidence: 98%Severity: 62%
Audit Metadata
Analyzed At
Sep 15, 2026, 02:12 AM
Package URL
pkg:socket/skills-sh/giuseppe-trisciuoglio%2Fdeveloper-kit%2Fspring-boot-security-jwt%2F@26168a33122fb6c237ba8fcf1bf392f5a990bf99f74b4356a5ffeb6204d99d19
Security Audit — socket — spring-boot-security-jwt