Skip to content

stylelint.yml installs unpinned npm dependencies — supply chain risk #678

Description

@sdghsdkjlas27-dotcom

stylelint.yml installs unpinned npm dependencies — supply chain risk

DESCRIPTION:
The stylelint.yml workflow installs stylelint and stylelint-config-standard globally from npm with no version constraints. A malicious publish to either package on npm would execute arbitrary code in the CI runner. Versions should be pinned (e.g., npm install --global stylelint@16.6.0 stylelint-config-standard@36.0.1).

REPRODUCTION:
.github/workflows/stylelint.yml, line 22:

- run: npm install --global stylelint stylelint-config-standard

IMPACT:
Medium — supply chain vulnerability. Unpinned npm install allows arbitrary code execution via malicious package version.

RELATED FILES:

  • .github/workflows/stylelint.yml (line 22)

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