GHSA-9jjv-524m-jm98

    Dashboard / Vulnerabilities / GHSA-9jjv-524m-jm98

    GHSA-9jjv-524m-jm98

    Published: 21 Sept 2022Last Modified: 8 Nov 2023

    Summary: @netlify/ipx vulnerable to Full Response SSRF and Stored XSS via Cache Poisoning and Improper Host Validation

    Details: ### Impact By sending specially crafted headers an attacker can bypass the source image domain allowlist, causing the handler to load and return arbitrary images. Because the response is cached globally, this image will then be served to visitors without requiring those headers to be set. XSS can be achieved by requesting a malicious SVG with embedded scripts, which would then be served from the site domain. Note that this does not apply to images loaded in `<img>` tags, as scripts do not execute in this context. The image URL can be set in the header independently of the request URL, meaning any site images that have not previously been cached can have their cache poisoned. ### Patches This problem has been fixed in version 1.2.3 ### Workarounds The problem is no longer exploitable on Netlify as the CDN now sanitizes the relevant header. Cached content can be cleared by re-deploying the site.

    Affected packages

    Package

    Name: @netlify/ipx

    Purl: pkg:npm/%40netlify/ipx

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.2.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-9jjv-524m-jm98 | CVE-DB