{
  "schema_version": "1.4.0",
  "id": "GHSA-phmw-pv3f-vvx7",
  "modified": "2021-12-02T23:09:12Z",
  "published": "2018-08-13T20:47:44Z",
  "withdrawn": "2020-06-17T15:14:58Z",
  "aliases": [],
  "summary": "Moderate severity vulnerability that affects paperclip",
  "details": "Withdrawn, accidental duplicate publish.\n\nThe thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type validation, which allows remote attackers to upload HTML documents and conduct cross-site scripting (XSS) attacks via a spoofed value, as demonstrated by image/jpeg.",
  "severity": [],
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "paperclip"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.2.2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2015-2963"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-phmw-pv3f-vvx7"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/thoughtbot/paperclip"
    }
  ],
  "database_specific": {
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-17T15:14:58Z",
    "nvd_published_at": null
  }
}