org.springframework.data:spring-data-keyvalue@2.0.0.RELEASE

  • latest version

    4.1.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    9 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.data:spring-data-keyvalue 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
    • M
    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') in the SpelPropertyComparator function. An attacker can execute arbitrary SpEL expressions by supplying crafted input to the Sort parameter in repository query methods.

    Note:

    This is only exploitable if all the conditions below are true:

    • The SpelPropertyComparator is used for sorting;

    • The method is exposed to untrusted input (e.g. via a custom REST endpoint);

    • Unsanitized user input is directly passed to the method.

    How to fix Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')?

    Upgrade org.springframework.data:spring-data-keyvalue to version 3.5.12, 4.0.6 or higher.

    [,3.5.12)[4.0.0-M1,4.0.6)