CVE-2026-19372

Handwriting-OCR handwriting-ocr-mcp-server upload_document index.ts fs.readFileSync path traversal

Published Aug 9, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A security flaw has been discovered in Handwriting-OCR handwriting-ocr-mcp-server 0.1.0. Affected by this vulnerability is the function fs.readFileSync of the file src/index.ts of the component upload_document. Performing a manipulation of the argument File results in path traversal. Attacking locally is a requirement. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The vulnerability lies in the Handwriting-OCR handwriting-ocr-mcp-server 0.1.0 package, where the fs.readFileSync call in src/index.ts fails to sanitize the file argument. A local attacker can supply a crafted path such as ../../../../etc/passwd to read any file the service process can access. This results in disclosure of sensitive data but does not grant code execution. The weakness is classified as CWE-22.

Affected Systems

The flaw affects the Handwriting-OCR handwriting-ocr-mcp-server component version 0.1.0, an open-source OCR backend hosted on GitHub. Only systems running this specific version and exposing the upload_document functionality are vulnerable.

Risk and Exploitability

With a CVSS score of 4.8, the risk is moderate, and exploitation requires local access to the service. The EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog. An attacker would manually invoke the upload_document endpoint with a manipulated file path; if allowed, the service will return the contents of any file it can read, presenting an opportunity for internal data exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Limit local access to the upload_document endpoint so that only trusted administrators can invoke it.
  • Implement server‑side validation of the file argument, normalizing the path and ensuring it remains within the intended directory.
  • Monitor application logs for repeated attempts to read files outside the allowed directory.
  • Check the project repository for a fix and upgrade to a patched version when available.

Generated by OpenCVE AI on August 9, 2026 at 23:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security flaw has been discovered in Handwriting-OCR handwriting-ocr-mcp-server 0.1.0. Affected by this vulnerability is the function fs.readFileSync of the file src/index.ts of the component upload_document. Performing a manipulation of the argument File results in path traversal. Attacking locally is a requirement. The project was informed of the problem early through an issue report but has not responded yet.
Title Handwriting-OCR handwriting-ocr-mcp-server upload_document index.ts fs.readFileSync path traversal
First Time appeared Handwriting-ocr
Handwriting-ocr handwriting-ocr-mcp-server
Weaknesses CWE-22
CPEs cpe:2.3:a:handwriting-ocr:handwriting-ocr-mcp-server:*:*:*:*:*:*:*:*
Vendors & Products Handwriting-ocr
Handwriting-ocr handwriting-ocr-mcp-server
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Aug 10, 2026, 4:08 PM
Reserved
Aug 9, 2026, 7:25 AM
Status
Deferred
Published
Aug 9, 2026, 11:16 PM
Modified
Oct 23, 2026, 8:10 PM