If pdf.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.
The patch removes the use of eval:
https://github.com/mozilla/pdf.js/pull/18015
Set the option isEvalSupported to false.
https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
{
"nvd_published_at": "2024-05-14T18:15:12Z",
"severity": "HIGH",
"github_reviewed_at": "2024-05-07T10:25:08Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-754"
]
}