The keystore-go library versions up to 2.1.0 have a vulnerability in the Decode() function where the trailing SHA-1 integrity digest of a JKS keystore is not properly verified if the digest is stripped from the file. This allows an attacker with write access to a keystore file to remove the final 20 bytes, bypass integrity checks and password verification, and inject or replace trusted CA certificates silently. The issue is fixed in version 3.0.0.