Skip to content

Security vulnerability at js-yaml #599

Closed
@pyrho

Description

@pyrho

@commitlint/load uses a vulnerable version of cosmicconfig (which uses a vulnerable version of js-yml), see https://nodesecurity.io/advisories/788 for more details on the security issue.
js-yml 3.13.0 is patched, but cosmicconfig has yet to update its version.

yarn audit output:

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ moderate      │ Denial of Service                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ js-yaml                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.13.0                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ commitlint                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ commitlint > @commitlint/cli > @commitlint/load >            │
│               │ cosmiconfig > js-yaml                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/788                       │
└───────────────┴──────────────────────────────────────────────────────────────┘

Expected Behavior

Use a patched version of cosmicconfig when it's available, see this issue & pr

Current Behavior

Uses a vulnerable version of cosmiconfig.

Affected packages

  • cli (load)
  • core
  • prompt
  • config-angular

Possible Solution

  1. Update cosmiconfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions