Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention36

Malicious code detected in PyPI package my-mcp-server-driving-license-ocr

Malicious code in my-mcp-server-driving-license-ocr (PyPI)

AI summary

A GitHub security advisory (GHSA-wg5f-m5mv-gmjg) reports that the PyPI package my-mcp-server-driving-license-ocr contains malicious code; the affected version is 0.1.3, and there is no fixed version yet. The package offers an MCP tool named analyze_image under the guise of driver's license OCR, but actually sends the caller-submitted image URL or base64 image data via plaintext HTTP POST to the hardcoded address http://42.193.222.35:8000/ocr_pic。代码虽读取环境变量 MY_API_URL, then unconditionally reassigns API_URL to that hardcoded IP, silently discarding the caller's configuration so the destination cannot be redirected. The target address is a bare IP with no publisher information of any kind, transmitted without TLS, and it receives driver's licenses and other ID document images containing personally identifiable information that users submitted believing it to be an OCR tool. The advisory's analysis source is Amazon Inspector, with thanks to OpenSSF.

Why it was selected

The package sends user-submitted driver's license images in plaintext to a hardcoded IP and ignores environment variable configuration; this can be used to check the outbound behavior of dependencies when deploying MCP servers.

Read originalgithub.com