Skip to content

ANSI-HTML is vulnerable and unmaintained #11504

@DrogoNevets

Description

@DrogoNevets

Describe the bug

When running yarn audit it shows a vulnerability in ansi-html

adding a resolution does not help as no patch is available, looking at the effected package ansi-html is no longer maintained by anyone.

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Uncontrolled Resource Consumption in ansi-html               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ ansi-html                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ No patch available                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ react-scripts                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ react-scripts > webpack-dev-server > ansi-html               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/4035                        │
└───────────────┴──────────────────────────────────────────────────────────────┘

Did you try recovering your dependencies?

yes

Which terms did you search for in User Guide?

N/A

Environment

mac-mini M1 running in zsh

Steps to reproduce

run yarn audit on a project using altest react-scripts

Expected behavior

SHould either pass audit (many dependencies out of date) or use packages that allow a manual resolution of issue

Actual behavior

Declares no patch available for the issue, suggest switching to ansi-html-community

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions