ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Security: Strengthen guards for PDFs

Open
#1,011 0 comments 0 reactions 1 assignee View on GitHub

@vprashrex is already working on this.

Since Jul 27, 2026.

Dominant language
Python
Stars
18
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
14

Description

Is your feature request related to a problem?
The API interfaces for processing audio files currently have protections against buffer overflow and CPU exhaustion, but this is not extended to PDF and PNG files, which poses a potential security risk.

Describe the solution you'd like

  • Strengthen the existing guards for PDF and PNG file processing.
  • Ensure similar protections are implemented as those for audio files.
Original issue

Describe the current behavior
Currently the API interfaces where files are processes have guards that prevent buffer overflow, CPU exhaustion etc error.

Describe the enhancement you'd like
Solidify the guards for PDF/PNG files too

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.