CVE-2025-55149: Path Traversal Vulnerability in TinyScientist PDF Review Function

tiny-scientist Updated 14 Dec 2025

Summary

11/08/2025
No i
Moderate
6.7

CVE-2025-55149: TinyScientist has Path Traversal Vulnerability in PDF Review Function (CWE-22). Affects tiny-scientist versions < 1.1.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TinyScientist is a Python package designed for managing and reviewing scientific papers, allowing users to upload and review PDF documents efficiently. It provides functionalities for file handling and user interactions, making it a valuable tool for researchers. However, it has been identified to have a critical path traversal vulnerability that could expose sensitive files on the server.

Vulnerability Detail

A critical path traversal vulnerability (CWE-22) exists in the review_paper function located in backend/app.py. This vulnerability allows malicious users to access arbitrary PDF files on the server by providing crafted file paths that bypass intended security restrictions. Attackers can exploit this flaw to read any PDF file accessible to the server process, potentially accessing sensitive documents outside the intended directory and performing reconnaissance on the server's file system structure.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement additional checks in the review_paper function to validate the file paths before processing them. For example, restrict the allowed paths to a specific directory and sanitize user inputs to prevent traversal attacks. Here is a code snippet to illustrate this:

if pdf_path.startswith("/api/files/"):
    # Safe path handling for API routes
    relative_path = pdf_path[len("/api/files/"):]  
    if not os.path.isabs(relative_path):  
        generated_base = os.path.join(project_root, "generated")  
        absolute_pdf_path = os.path.join(generated_base, relative_path)  
    else:
        raise ValueError("Invalid file path")  
else:
    raise ValueError("Invalid file path")  

Conclusion

The identified path traversal vulnerability in TinyScientist poses significant risks to server security by allowing unauthorized access to sensitive files. It is crucial to update to the latest version to mitigate these risks and ensure the integrity of your application.

See every vulnerability recorded for tiny-scientist →

Share this vulnerability

FAQ

CVE-2025-55149 is a path traversal vulnerability in the TinyScientist package that allows unauthorized access to arbitrary PDF files on the server.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors and alerts for open-source vulnerabilities.

The vulnerability can lead to unauthorized reading of sensitive documents, exposure of the server's file system structure, and potential data breaches.

You can update TinyScientist by running the command: pip install --upgrade tiny-scientist to ensure you are using the patched version.

If you cannot update immediately, implement additional path validation and sanitization in your code as a temporary workaround.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback