Skip to content

Commit

Permalink
Merge pull request #1092 from shamoon/update-pdfjs
Browse files Browse the repository at this point in the history
Chore: update pdfjs to 3.11.174, resolve CVE
  • Loading branch information
VadimDez authored May 14, 2024
2 parents d1b0301 + 9148eec commit 1280c5f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/VadimDez/ng2-pdf-viewer#readme",
"dependencies": {
"pdfjs-dist": "^3.10.111",
"pdfjs-dist": "^3.11.174",
"tslib": "^2.3.0"
},
"devDependencies": {
Expand Down
9 changes: 6 additions & 3 deletions src/app/pdf-viewer/pdf-viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ describe('AppComponent', () => {
url: src,
cMapUrl,
cMapPacked: true,
enableXfa: true
enableXfa: true,
isEvalSupported: false,
});
});

Expand All @@ -126,7 +127,8 @@ describe('AppComponent', () => {
url: src,
cMapUrl,
cMapPacked: true,
enableXfa: true
enableXfa: true,
isEvalSupported: false,
});
});

Expand All @@ -139,7 +141,8 @@ describe('AppComponent', () => {
url: srcUrl,
cMapUrl,
cMapPacked: true,
enableXfa: true
enableXfa: true,
isEvalSupported: false,
});
});
});
Expand Down
3 changes: 2 additions & 1 deletion src/app/pdf-viewer/pdf-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,9 @@ export class PdfViewerComponent
const params: any = {
cMapUrl: this._cMapsUrl,
cMapPacked: true,
enableXfa: true
enableXfa: true,
};
params.isEvalSupported = false; // http://cve.org/CVERecord?id=CVE-2024-4367

if (srcType === 'string') {
params.url = this.src;
Expand Down

0 comments on commit 1280c5f

Please sign in to comment.