Alcumus / react-doc-viewer

Apache License 2.0
242 stars 103 forks source link

react-pdf-8.0.2.tgz: 1 vulnerabilities (highest severity is: 8.8) - autoclosed #141

Closed mend-for-github-com[bot] closed 3 months ago

mend-for-github-com[bot] commented 4 months ago
Vulnerable Library - react-pdf-8.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/react-pdf/node_modules/pdfjs-dist/package.json

Found in HEAD commit: a7a8932a58914aa52ccf38b7d5102ca54917bdfa

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react-pdf version) Remediation Possible**
CVE-2024-4367 High 8.8 pdfjs-dist-3.11.174.tgz Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-4367 ### Vulnerable Library - pdfjs-dist-3.11.174.tgz

Library home page: https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-3.11.174.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/react-pdf/node_modules/pdfjs-dist/package.json

Dependency Hierarchy: - react-pdf-8.0.2.tgz (Root Library) - :x: **pdfjs-dist-3.11.174.tgz** (Vulnerable Library)

Found in HEAD commit: a7a8932a58914aa52ccf38b7d5102ca54917bdfa

Found in base branch: master

### Vulnerability Details

A type check was missing when handling fonts in PDF.js, which would allow arbitrary JavaScript execution in the PDF.js context. This vulnerability affects Firefox < 126, Firefox ESR < 115.11, and Thunderbird < 115.11.

Publish Date: 2024-05-14

URL: CVE-2024-4367

### CVSS 3 Score Details (8.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq

Release Date: 2024-05-14

Fix Resolution: pdfjs-dist - 4.2.67

mend-for-github-com[bot] commented 3 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.