org.springframework.data:spring-data-rest-core@5.0.8

  • latest version

    5.1.2

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.data:spring-data-rest-core 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
    Incorrect Authorization

    org.springframework.data:spring-data-rest-core is a Spring Data REST.

    Affected versions of this package are vulnerable to Incorrect Authorization in the CrudMethodsSupportedHttpMethods class, which reports POST as supported for any writable collection-like association resource without checking that the repository exports save(…). A user can add entries to an association, persisting the parent aggregate, by sending a POST with a text/uri-list body to an association resource, even when save(…) is excluded from export. This requires an exported repository that withholds save(…) and a domain type with a writable collection-like association whose target is also exported.

    How to fix Incorrect Authorization?

    Upgrade org.springframework.data:spring-data-rest-core to version 5.0.9, 5.1.3 or higher.

    [,5.0.9)[5.1.0-M1,5.1.3)