spring-data-redis
Warn
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
RedisConfig.javatemplate uses an unsafe Jackson polymorphic deserialization configuration. Specifically, it callsactivateDefaultTypingwithObjectMapper.DefaultTyping.NON_FINALandLaissezFaireSubTypeValidator.instance. This configuration is a known security risk that can lead to Remote Code Execution (RCE) if an attacker can manipulate the data stored in the Redis instance, as it permits the deserialization of arbitrary gadget classes during JSON processing. - [INDIRECT_PROMPT_INJECTION]: The skill implements patterns that ingest untrusted data into Redis operations without explicit sanitization or boundary enforcement, creating a surface for indirect prompt injection or key collision attacks.
- Ingestion points: Untrusted identifiers such as
identifierinRateLimiterandorderIdinOrderCacheServiceare used to construct Redis keys. - Boundary markers: The code relies on simple string concatenation (e.g.,
"ratelimit:" + identifier) without ensuring the input does not contain characters that could break the key namespace. - Capability inventory: The skill uses
RedisTemplateto performopsForValue().set(),increment(), anddelete()operations. - Sanitization: No sanitization or validation of the input strings is performed before they are used in key construction or value retrieval.
Audit Metadata