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.
Published: 2026-08-09
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Sun, 09 Aug 2026 22:45:00 +0000

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'}


Subscriptions

Handwriting-ocr Handwriting-ocr-mcp-server
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-09T22:30:10.705Z

Reserved: 2026-08-09T07:25:11.045Z

Link: CVE-2026-19372

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-09T23:30:06Z

Weaknesses
  • CWE-22

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