org.webjars:swagger-ui@3.18.1 vulnerabilities

  • latest version

    5.18.2

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars:swagger-ui package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Server-side Request Forgery (SSRF)

    org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ?url parameter, which was intended to allow displaying remote OpenAPI definitions. This functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.

    NOTE: This vulnerability has also been identified as: CVE-2018-25031

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.webjars:swagger-ui to version 4.1.3 or higher.

    [0,4.1.3)
    • M
    Server-side Request Forgery (SSRF)

    org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ?url parameter, which was intended to allow displaying remote OpenAPI definitions. This functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.

    NOTE: This vulnerability has also been identified as: CVE-2021-46708

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.webjars:swagger-ui to version 4.1.3 or higher.

    [0,4.1.3)
    • M
    Insecure Defaults

    org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

    Affected versions of this package are vulnerable to Insecure Defaults. Markdown rendering allows class, style and data attributes in the result by default.

    How to fix Insecure Defaults?

    Upgrade org.webjars:swagger-ui to version 3.26.1 or higher.

    [,3.26.1)
    • M
    Relative Path Overwrite (RPO)

    org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

    Affected versions of this package are vulnerable to Relative Path Overwrite (RPO). Attackers are able to use the Relative Path Overwrite (RPO) technique to perform CSS-based input field value exfiltration, such as exfiltration of a CSRF token value i.e. allows the embedding of untrusted JSON data from remote servers, using <style>@import within the JSON data.

    How to fix Relative Path Overwrite (RPO)?

    Upgrade org.webjars:swagger-ui to version 3.23.11 or higher.

    [,3.23.11)
    • M
    Cross-site Scripting (XSS)

    org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to a lack of sanitization of URLs used for OAuth auth flow.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars:swagger-ui to version 3.20.9 or higher.

    [,3.20.9)