Refine your search

1 vulnerability found for by faker-js

CVE-2026-73231 (GCVE-0-2026-73231)
Vulnerability from cvelistv5
Published
2026-08-11 19:28
Modified
2026-08-13 14:41
CWE
  • CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Summary
Faker generates massive amounts of fake data in the browser and Node.js. Prior to 10.5.0, the faker.helpers.fake method in src/modules/helpers/eval.ts allows attacker-controlled fake templates to access the Function constructor through fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0.
Impacted products
Vendor Product Version
faker-js faker Version: < 10.5.0
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-73231",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-13T14:41:05.021103Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-08-13T14:41:25.803Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "references": [
          {
            "tags": [
              "exploit"
            ],
            "url": "https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537"
          }
        ],
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "faker",
          "vendor": "faker-js",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 10.5.0"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "Faker generates massive amounts of fake data in the browser and Node.js. Prior to 10.5.0, the faker.helpers.fake method in src/modules/helpers/eval.ts allows attacker-controlled fake templates to access the Function constructor through fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-95",
              "description": "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-11T19:28:44.943Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537"
        },
        {
          "name": "https://github.com/faker-js/faker/pull/3852",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/faker-js/faker/pull/3852"
        },
        {
          "name": "https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7"
        },
        {
          "name": "https://github.com/faker-js/faker/releases/tag/v10.5.0",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/faker-js/faker/releases/tag/v10.5.0"
        }
      ],
      "source": {
        "advisory": "GHSA-qxc2-j82w-r537",
        "discovery": "UNKNOWN"
      },
      "title": "Faker: helpers.fake exploitable into arbritary code execution"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-73231",
    "datePublished": "2026-08-11T19:28:44.943Z",
    "dateReserved": "2026-08-11T14:41:20.123Z",
    "dateUpdated": "2026-08-13T14:41:25.803Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}