Skip to content

Prototype Pollution in minimist | @angular-devkit/schematics-cli v13.3.0 #22872

Closed

Description

@Shinigami92

nestjs/nest-cli#1579

Blocking CI/CD in company project using @nestjs/cli

Prototype Pollution in minimist

> pnpm audit
┌─────────────────────┬───────────────────────────────────────────────────┐
│ high                │ Prototype Pollution in minimist                   │
├─────────────────────┼───────────────────────────────────────────────────┤
│ Package             │ minimist                                          │
├─────────────────────┼───────────────────────────────────────────────────┤
│ Vulnerable versions │ <=1.2.5                                           │
├─────────────────────┼───────────────────────────────────────────────────┤
│ Patched versions    │ <0.0.0                                            │
├─────────────────────┼───────────────────────────────────────────────────┤
│ More info           │ https://github.com/advisories/GHSA-xvch-5gv4-984h │
└─────────────────────┴───────────────────────────────────────────────────┘
1 vulnerabilities found
Severity: 1 high
> pnpm why minimist
Legend: production dependency, optional only, dev only

dependencies:
@nestjs/apollo 10.0.7
├─┬ @nestjs/core 8.4.2 peer
│ └─┬ @nestjs/platform-express 8.4.2 peer
│   └─┬ multer 1.4.4
│     └─┬ mkdirp 0.5.5
│       └── minimist 1.2.6
└─┬ @nestjs/graphql 10.0.7 peer
  └─┬ @nestjs/core 8.4.2 peer
    └─┬ @nestjs/platform-express 8.4.2 peer
      └─┬ multer 1.4.4
        └─┬ mkdirp 0.5.5
          └── minimist 1.2.6
@nestjs/core 8.4.2
└─┬ @nestjs/platform-express 8.4.2 peer
  └─┬ multer 1.4.4
    └─┬ mkdirp 0.5.5
      └── minimist 1.2.6
@nestjs/graphql 10.0.7
└─┬ @nestjs/core 8.4.2 peer
  └─┬ @nestjs/platform-express 8.4.2 peer
    └─┬ multer 1.4.4
      └─┬ mkdirp 0.5.5
        └── minimist 1.2.6
@nestjs/platform-express 8.4.2
└─┬ multer 1.4.4
  └─┬ mkdirp 0.5.5
    └── minimist 1.2.6

devDependencies:
@nestjs/cli 8.2.4
├─┬ @angular-devkit/schematics-cli 13.3.0
│ └── minimist 1.2.5
├─┬ tsconfig-paths 3.14.0
│ ├─┬ json5 1.0.1
│ │ └── minimist 1.2.6
│ └── minimist 1.2.6
└─┬ tsconfig-paths-webpack-plugin 3.5.2
  └─┬ tsconfig-paths 3.14.0
    ├─┬ json5 1.0.1
    │ └── minimist 1.2.6
    └── minimist 1.2.6
@nestjs/testing 8.4.2
├─┬ @nestjs/core 8.4.2 peer
│ └─┬ @nestjs/platform-express 8.4.2 peer
│   └─┬ multer 1.4.4
│     └─┬ mkdirp 0.5.5
│       └── minimist 1.2.6
└─┬ @nestjs/platform-express 8.4.2 peer
  └─┬ multer 1.4.4
    └─┬ mkdirp 0.5.5
      └── minimist 1.2.6
tsconfig-paths 3.14.0
├─┬ json5 1.0.1
│ └── minimist 1.2.6
└── minimist 1.2.6

Activity

  1. added this to the needsTriage milestone on Mar 22, 2022
  2. Shinigami92 commented on Mar 22, 2022

    @Shinigami92
    Author

    Temporary workaround => add this to package.json:

      // ...
      "pnpm": {
        "overrides": {
          "minimist@<=1.2.5": "1.2.6"
        }
      }

    So at least this unblocks my CI

  3. alan-agius4 commented on Mar 22, 2022

    @alan-agius4
    Collaborator

    It appears that 1.2.6 is still vulnerable https://snyk.io/test/npm/minimist/1.2.6

    That said, it is important to point out that we don't expect the CLI to run in production environments where this vulnerability can be exploited.

  4. zackdotcomputer commented on Mar 23, 2022

    @zackdotcomputer

    Filed with them: https://github.com/substack/minimist/issues/168

    Agreed that this isn't a must-fix-right-away issue because its in a CLI, my main concern over on my project is that someone runs npm audit fix --force and winds up downgrading our use of @nestjs/cli (which depends on this repo) back a few years.

  5. added 9 commits that reference this issue on Mar 23, 2022
    75caa11
    80d479e
    f61cd1a
    ccb0f95
    abcdf4d
    2656a33
    9f8d4de
    ba3486d
    1f7fa69
  6. alan-agius4 commented on Mar 23, 2022

    @alan-agius4
    Collaborator

    Closed via #22873

  7. angular-automatic-lock-bot commented on Apr 26, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions