idempotency-patterns
Warn
Audited by Socket on Sep 9, 2026
1 alert found:
AnomalyAnomalyexamples/bad-idempotency.java
LOWAnomalyLOW
examples/bad-idempotency.java
The code contains a confirmed race condition and crash-consistency vulnerability in idempotent order creation. It should use an atomic idempotency-key reservation or unique constraint, and coordinate order creation with durable state, such as an appropriate transaction or recoverable state machine. No malicious behavior is evident in this fragment.
Confidence: 99%Severity: 65%
Audit Metadata