GSD-2022-41919

Vulnerability from gsd - Updated: 2023-12-13 01:19
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'.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2022-41919",
    "id": "GSD-2022-41919"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2022-41919"
      ],
      "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\u2019s 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\u0027.",
      "id": "GSD-2022-41919",
      "modified": "2023-12-13T01:19:33.053110Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-41919",
        "STATE": "PUBLIC",
        "TITLE": "Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "fastify",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003e= 4.0.0, \u003c 4.10.2"
                        },
                        {
                          "version_value": "\u003e= 3.0.0, \u003c 3.29.4"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "fastify"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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\u2019s 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\u0027."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "NETWORK",
          "availabilityImpact": "NONE",
          "baseScore": 4.2,
          "baseSeverity": "MEDIUM",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "privilegesRequired": "NONE",
          "scope": "UNCHANGED",
          "userInteraction": "REQUIRED",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-352: Cross-Site Request Forgery (CSRF)"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
            "refsource": "CONFIRM",
            "url": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh"
          },
          {
            "name": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
            "refsource": "MISC",
            "url": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9"
          },
          {
            "name": "https://www.npmjs.com/package/@fastify/csrf",
            "refsource": "MISC",
            "url": "https://www.npmjs.com/package/@fastify/csrf"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-3fjj-p79j-c9hh",
        "discovery": "UNKNOWN"
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003e=3.0.0 \u003c3.29.4||\u003e=4.0.0 \u003c4.10.2",
          "affected_versions": "All versions starting from 3.0.0 before 3.29.4, all versions starting from 4.0.0 before 4.10.2",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-352",
            "CWE-937"
          ],
          "date": "2022-11-26",
          "description": "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\u2019s 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\u0027.",
          "fixed_versions": [
            "3.29.4",
            "4.10.2"
          ],
          "identifier": "CVE-2022-41919",
          "identifiers": [
            "CVE-2022-41919",
            "GHSA-3fjj-p79j-c9hh",
            "GMS-2022-6953"
          ],
          "not_impacted": "All versions before 3.0.0, all versions starting from 3.29.4 before 4.0.0, all versions starting from 4.10.2",
          "package_slug": "npm/fastify",
          "pubdate": "2022-11-22",
          "solution": "Upgrade to versions 3.29.4, 4.10.2 or above.",
          "title": "Cross-Site Request Forgery (CSRF)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-41919",
            "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
            "https://www.npmjs.com/package/@fastify/csrf",
            "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
            "https://github.com/advisories/GHSA-3fjj-p79j-c9hh"
          ],
          "uuid": "665c3ec4-0a5f-4a96-828f-eed41ee6690d"
        },
        {
          "affected_range": "\u003c0",
          "affected_versions": "All versions starting from 3.0.0 before 3.29.4, all versions starting from 4.0.0 before 4.10.2",
          "cwe_ids": [
            "CWE-1035",
            "CWE-352",
            "CWE-937"
          ],
          "date": "2022-11-21",
          "description": "Cross-Site Request Forgery (CSRF) in fastify.",
          "fixed_versions": [
            "3.29.4",
            "4.10.2"
          ],
          "identifier": "GMS-2022-6953",
          "identifiers": [
            "GHSA-3fjj-p79j-c9hh",
            "GMS-2022-6953",
            "CVE-2022-41919"
          ],
          "not_impacted": "All versions before 3.0.0, all versions starting from 3.29.4 before 4.0.0, all versions starting from 4.10.2",
          "package_slug": "npm/fastify",
          "pubdate": "2022-11-21",
          "solution": "Upgrade to versions 3.29.4, 4.10.2 or above.",
          "title": "Duplicate of ./npm/fastify/CVE-2022-41919.yml",
          "urls": [
            "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
            "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
            "https://github.com/advisories/GHSA-3fjj-p79j-c9hh"
          ],
          "uuid": "733c36e2-9752-4cc0-8cb1-72c7d2b3efd3"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*",
                "cpe_name": [],
                "versionEndExcluding": "4.10.2",
                "versionStartIncluding": "4.0.0",
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*",
                "cpe_name": [],
                "versionEndExcluding": "3.29.4",
                "versionStartIncluding": "3.0.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-41919"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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\u2019s 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\u0027."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-352"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9"
            },
            {
              "name": "https://www.npmjs.com/package/@fastify/csrf",
              "refsource": "MISC",
              "tags": [
                "Product"
              ],
              "url": "https://www.npmjs.com/package/@fastify/csrf"
            },
            {
              "name": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 2.8,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2022-11-26T03:35Z",
      "publishedDate": "2022-11-22T20:15Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…