GHSA-g27j-74fp-xfpr

    Dashboard / Vulnerabilities / GHSA-g27j-74fp-xfpr

    GHSA-g27j-74fp-xfpr

    Published: 5 Apr 2022Last Modified: 14 Apr 2025

    Summary: Insecure default value for CORS configuration

    Details: ### Impact The default value for the `CORS_ENABLED` and `CORS_ORIGIN` configuration was set to be very permissive by default. This could lead to unauthorized access in uncontrolled environments when the configuration hasn't been changed. ### Patches The default values for CORS have been changed in https://github.com/directus/directus/pull/12022 which is released under 9.7.0 ### Workarounds Configure the CORS environment variables to match your project's usage, rather than leaving them at the (permissive) defaults. ### For more information If you have any questions or comments about this advisory: * Open an issue in [directus/directus](https://github.com/directus/directus) * Email us at [[email protected]](mailto:[email protected])

    Affected packages

    Package

    Name: directus

    Purl: pkg:npm/directus

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -9.7.0

    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-g27j-74fp-xfpr | CVE-DB