Skip to content

This library is pinning an old version of yaml which now has a security issue #44

Description

@kgetz-arista

This library is hardcoding an old version of yaml here:

https://github.com/tiktok/pnpm-sync/blob/main/packages/pnpm-sync-lib/package.json#L25

This version now has a security issue, which is showing up in our repo via this package:

┌───────────────┬───────────────────────────────────────────────────────────────────────────────────────┐
│ Issue         │ yaml is vulnerable to Stack Overflow via deeply nested YAML collections               │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Severity      │ moderate                                                                              │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Dependency    │ yaml                                                                                  │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Version       │ 2.4.1                                                                                 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Full path     │ packages > rush-artifactory-cache-plugin > @microsoft/rush-lib > pnpm-sync-lib > yaml │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Vulnerable in │ >=2.0.0 <2.8.3                                                                        │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.8.3                                                                               │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ Suggested fix │ Upgrade to version 2.8.3 or later                                                     │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────┤
│ More info     │ https://github.com/advisories/GHSA-48c2-rrv3-qjmp                                     │
└───────────────┴───────────────────────────────────────────────────────────────────────────────────────┘

Recommendation: don't pin specific versions, use version ranges instead. Also, upgrade to 2.8.x.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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