PT-2022-9414 · Faker.Js+1 · Faker.Js+1

Unknown

·

Published

2022-01-14

·

Updated

2024-06-14

·

CVE-2021-23567

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions colors versions after 1.4.0 Faker.js (affected versions not specified)
Description The issue is related to a Denial of Service (DoS) introduced through an infinite loop in the americanFlag module of the colors package. This appears to be a purposeful attempt by a maintainer to make the package unusable. The maintainer of Faker.js also deliberately removed functional code, making it unusable as well.
Recommendations For colors versions after 1.4.0, pin the dependency to 1.4.0 as a temporary workaround. For Faker.js, consider using the forked functional code available at https://github.com/faker-js/faker as an alternative. At the moment, there is no information about a newer version that contains a fix for this issue in Faker.js.

Exploit

Fix

Infinite Loop

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-23567
GHSA-5W9C-RV96-FR7G
GHSA-GH88-3PXP-6FM8
SNYK-JS-COLORS-2331906

Affected Products

Faker.Js
Coloros