org.springframework.data:spring-data-rest-core@2.4.2.RELEASE

  • 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)
    • M
    Improper Enforcement of Behavioral Workflow

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

    Affected versions of this package are vulnerable to Improper Enforcement of Behavioral Workflow via the handling of HTTP PUT requests against immutable aggregate types. An attacker can bypass optimistic-locking protections by submitting a crafted request body that includes a manipulated version property, resulting in stale writes being silently accepted and concurrent updates being overwritten.

    Note: This is only exploitable if the aggregate root is immutable or allows a body-driven polymorphic subtype change, and the version property is visible to Jackson's deserialization model and not excluded via @JsonIgnore.

    How to fix Improper Enforcement of Behavioral Workflow?

    Upgrade org.springframework.data:spring-data-rest-core to version 5.0.7, 5.1.1 or higher.

    [,5.0.7)[5.1.0,5.1.1)
    • H
    Authorization Bypass Through User-Controlled Key

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

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the PATCH process. An attacker can overwrite identifier and version properties by sending crafted RFC 6902 JSON Patch requests, potentially bypassing optimistic-locking protections and causing unauthorized modification or replacement of records belonging to other users. This is only exploitable if the entity type declares an identifier or version property that is visible to Jackson's deserialization model (i.e., the property has a public setter and is not explicitly excluded via @JsonIgnore).

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.springframework.data:spring-data-rest-core to version 5.0.7, 5.1.1 or higher.

    [,5.0.7)[5.1.0,5.1.1)
    • M
    Access Control Bypass

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

    Affected versions of this package are vulnerable to Access Control Bypass. in the Querydsl integration, which accepts arbitrary persistent property paths as request-parameter filter keys without considering Jackson customizations before passing them to Querydsl. An attacker can access sensitive fields that are intended to be hidden by specifying crafted filter keys in requests.

    How to fix Access Control Bypass?

    Upgrade org.springframework.data:spring-data-rest-core to version 4.5.12, 5.0.6 or higher.

    [,4.5.12)[5.0.0-M1,5.0.6)
    • M
    Information Exposure

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

    Affected versions of this package are vulnerable to Information Exposure. in the error response serialization. An attacker can gain access to sensitive internal information by triggering errors that cause the full exception cause chain to be included in HTTP responses.

    How to fix Information Exposure?

    Upgrade org.springframework.data:spring-data-rest-core to version 4.5.12, 5.0.6 or higher.

    [,4.5.12)[5.0.0-M1,5.0.6)
    • H
    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

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

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection'). in the processing of JSON Patch requests containing map-typed properties. An attacker can execute arbitrary SpEL expressions by supplying crafted map keys in the JSON Pointer path segment.

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

    Upgrade org.springframework.data:spring-data-rest-core to version 4.5.12, 5.0.6 or higher.

    [,4.5.12)[5.0.0-M1,5.0.6)
    • H
    Improperly Controlled Modification of Dynamically-Determined Object Attributes

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

    Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes. due to missing write-access enforcement in the JsonPointerMapping class in JsonPointerMapping.java. When a JSON Patch (application/json-patch+json) request is processed, the write-access filter is applied only to the final segment of a multi-segment JSON Pointer and not to intermediate path segments. An attacker can send a JSON Patch request whose path traverses a container property marked read-only at the Jackson level into a nested embeddable object, collection, or map element that carries no per-field restriction, modifying data the application intends to be immutable.

    Note:

    Only applications whose domain model includes an embeddable object, collection, or map property whose container is marked read-only at the Jackson level, while the inner element type carries no per-field restriction, are affected.

    How to fix Improperly Controlled Modification of Dynamically-Determined Object Attributes?

    Upgrade org.springframework.data:spring-data-rest-core to version 4.5.12, 5.0.6 or higher.

    [,4.5.12)[5.0.0-M1,5.0.6)