org.springframework.ai:spring-ai-vector-store@1.1.0-M3

  • latest version

    1.1.6

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    13 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.ai:spring-ai-vector-store package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Improper Neutralization of Special Elements in Data Query Logic

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic via the FilterExpressionConverter implementations. An attacker can alter underlying vector store queries by supplying crafted filter expressions, as keys and values are not properly escaped during translation to backend query languages.

    How to fix Improper Neutralization of Special Elements in Data Query Logic?

    Upgrade org.springframework.ai:spring-ai-vector-store to version 1.0.6, 1.1.5 or higher.

    [,1.0.6)[1.1.0-M1,1.1.5)
    • C
    Arbitrary Code Injection

    Affected versions of this package are vulnerable to Arbitrary Code Injection in the SimpleVectorStore function when unescaped user-supplied input is used as a filter expression key. An attacker can execute arbitrary code by supplying crafted input that is evaluated by the expression engine.

    Note:

    This is only exploitable if the application uses SimpleVectorStore and passes user-supplied input as a filter expression key.

    How to fix Arbitrary Code Injection?

    Upgrade org.springframework.ai:spring-ai-vector-store to version 1.0.5, 1.1.4 or higher.

    [,1.0.5)[1.1.0-M1,1.1.4)
    • H
    SQL Injection

    Affected versions of this package are vulnerable to SQL Injection due to the AbstractFilterExpressionConverter's handling of operator characters, such as || and &&. This allows authenticated users to bypass metadata-based access controls by supplying arbitrary JSONPath queries to access unintended documents. Applications using vector stores that extend AbstractFilterExpressionConverter for multi-tenant isolation, role-based access control, or document filtering based on metadata are vulnerable to this bypass.

    How to fix SQL Injection?

    Upgrade org.springframework.ai:spring-ai-vector-store to version 1.0.4, 1.1.3, 2.0.0-M3 or higher.

    [1.0.0-M5,1.0.4)[1.1.0-M1,1.1.3)[2.0.0-M1,2.0.0-M3)