← All tasks
javascriptprotobufjs/protobuf.js #1696Not a task: not reproduced

cli/package-lock.json forces insecure minimatch 3.0.4

envgap__protobufjs__protobuf.js-1696

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
fa01883a0f756824d69ce92bfb012de05ff223ef
Manifest
cli/package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

protobufjs/protobuf.js #1696 · read the original issue
protobuf.js version: 6.11.2



Upon installing the package, the cli subpackage brings in (via transitive dep) minimatch 3.0.4. This version has been flagged with a security vulnerability. A version 3.0.5 (or higher) resolves the vulnerability, but cannot be installed via npm update due to cli/package-lock.json.



At this time the latest 3.x version is minimatch 3.1.2.



- Vulnerability reported by JFrog Xray: XRAY-198521

- Vulnerable Component: minimatch:3.0.4

- Severity: High

- CVSS Score: 4.3 (v2) 7.5 (v3)

- Fix version: 3.0.5

- Summary: minimatch minimatch.js braceExpand() Function Improper Regular Expression DoS

- Description: minimatch contains a flaw in the braceExpand() function in minimatch.js that is triggered as an improper regular expression is used to match patterns for brace expansion. This may allow a context-dependent attacker to hang or slow down a Node process using the library.



```

# in a dummy 't' project where protobufjs is the only installed package...



$ npm ls minimatch

t@1.0.0 (...omitted path...)/t

└── (empty)



$ cd node_modules/protobufjs/cli

$ npm ls minimatch

cli@6.9.0 (...omitted path...)/t/node_modules/protobufjs/cli

└─┬ tmp@0.2.1

  └─┬ rimraf@3.0.2

    └─┬ glob@7.1.6

      └── minimatch@3.0.4

```



Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]