Skip to content
Heist/ feed
Back to feed
High

three.js — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2020-28496

This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: 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")

Products
three.js
Affected versions
111+dfsg1-1, 111+dfsg1-2, 111+dfsg1-3, 111+dfsg1-3build1, 111+dfsg1-4, 111+dfsg1-5, 73+dfsg-1, 80+dfsg2-1, 80+dfsg2-2
Fixed versions
Not specified
CVEs
CVE-2020-28496
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2020-28496

core-osv · Original source

Published 18 Feb 2021, 15:15 UTC

This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: 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")

osv:UBUNTU-CVE-2020-28496

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

three.js

Fixed versions: Not specified

Complete source record
{
  "id": "f0b11ec77730aa4f24cb4567840a6cbe698a40a85cf24eceb28ddd005b883622",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-28496",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2020-28496",
    "summary": "This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: 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\")",
    "evidence": "osv:UBUNTU-CVE-2020-28496",
    "products": [
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "73+dfsg-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "80+dfsg2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "80+dfsg2-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "111+dfsg1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "111+dfsg1-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "111+dfsg1-3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "111+dfsg1-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "111+dfsg1-5",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "three.js",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "111+dfsg1-3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "111+dfsg1-3build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "111+dfsg1-4",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "111+dfsg1-5",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2020-28496",
      "aliases": [
        "UBUNTU-CVE-2020-28496"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "73+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "73+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "80+dfsg2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "80+dfsg2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "80+dfsg2-2",
            "111+dfsg1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "111+dfsg1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "111+dfsg1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "111+dfsg1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "111+dfsg1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "three.js",
            "purl": "pkg:deb/ubuntu/three.js?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "111+dfsg1-3",
            "111+dfsg1-3build1",
            "111+dfsg1-4",
            "111+dfsg1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-three",
                "binary_version": "111+dfsg1-5"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:53.477175636Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-28496"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2020-28496",
        "https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e",
        "https://github.com/mrdoob/three.js/issues/21132",
        "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972",
        "https://snyk.io/vuln/SNYK-JS-THREE-1064931",
        "https://www.cve.org/CVERecord?id=CVE-2020-28496"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-28496",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354236,
  "published_at": "2021-02-18T15:15:00+00:00"
}