CVE-2022-41957
JavaScript vulnerability analysis and mitigation

Overview

Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. The vulnerability (CVE-2022-41957) affects versions before 2.6.2 and from 3.0.0 to before 3.3.0, as well as all versions of muhammara's predecessor package hummus. The issue was discovered in November 2022 (GitHub Advisory).

Technical details

The vulnerability stems from unchecked return values leading to NULL pointer dereferences when parsing maliciously crafted PDF files. The issue has a CVSS v3.1 base score of 7.5 (High severity) with attack vector being Network, attack complexity Low, requiring no privileges or user interaction (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to Denial of Service (DoS) when the application attempts to parse a maliciously crafted PDF file (MITRE CVE, GitHub Advisory).

Exploitability

The vulnerability can be triggered by supplying a maliciously crafted PDF file to be parsed. The attack vector is network-based and requires no special privileges or user interaction (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in muhammara version 3.4.0 and backported to version 2.6.2. For the hummus package, no patch is available. As a workaround, users are advised not to process files from untrusted sources and to replace hummus with muhammara (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vx52-2968-3vc6HIGH7.4
  • JavaScript logoJavaScript
  • pnpm
NoYesSep 01, 2026
GHSA-2rx9-3g3h-c2jvHIGH7.1
  • JavaScript logoJavaScript
  • pnpm
NoYesSep 01, 2026
GHSA-cp6q-959q-f8rhMEDIUM6.4
  • JavaScript logoJavaScript
  • @tiptap/core
NoYesSep 02, 2026
GHSA-p498-v437-472gMEDIUM5.7
  • JavaScript logoJavaScript
  • @humanfs/node
NoYesSep 02, 2026
CVE-2026-84371MEDIUM5.4
  • JavaScript logoJavaScript
  • cockpit-image-builder
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management