{
  "threat_severity" : "Moderate",
  "public_date" : "2022-11-22T00:00:00Z",
  "bugzilla" : {
    "description" : "fastify: CSRF",
    "id" : "2159502",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2159502"
  },
  "cvss3" : {
    "cvss3_base_score" : "8.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-352",
  "details" : [ "Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s essence as \"application/x-www-form-urlencoded\", \"multipart/form-data\", or \"text/plain\", could potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.", "A Cross-site request forgery (CSRF) vulnerability was found in fastify due to improper handling of incorrect Content-Types. This flaw allows an attacker to use an incorrect 'Content-Type' to bypass checks to allow fetch() requests that could be used to invoke routes that only accept `application/json` content type and bypass any CORS protection." ],
  "package_state" : [ {
    "product_name" : "Red Hat OpenShift Dev Spaces",
    "fix_state" : "Affected",
    "package_name" : "devspaces/dashboard-rhel8",
    "cpe" : "cpe:/a:redhat:openshift_devspaces:3"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-41919\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-41919\nhttps://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9\nhttps://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh\nhttps://www.npmjs.com/package/@fastify/csrf" ],
  "name" : "CVE-2022-41919",
  "mitigation" : {
    "value" : "Implement Cross-site request forgery protection using `@fastify/csrf'.",
    "lang" : "en:us"
  },
  "csaw" : false
}