[GH-ISSUE #7856] Ddos of parsing markdown in frontend & images #67080

Open
opened 2026-05-04 09:25:15 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @remco-pc on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7856

What is the issue?

if the frontend converts markdown strings to supported html elements, on every token the frontend is requesting the same image over and over again and start downloading all images on every new token.

So markdown conversion should be done on the backend to avoid ddos attacks through wrong javascript versions.

also a rate limiter on your image server should be applied, if this gets fired you can amplify the load on servers real easily, example on youtube

OS

No response

GPU

No response

CPU

No response

Ollama version

0.4.1

Originally created by @remco-pc on GitHub (Nov 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7856 ### What is the issue? if the frontend converts markdown strings to supported html elements, on every token the frontend is requesting the same image over and over again and start downloading all images on every new token. So markdown conversion should be done on the backend to avoid ddos attacks through wrong javascript versions. also a rate limiter on your image server should be applied, if this gets fired you can amplify the load on servers real easily, example on youtube ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.4.1
GiteaMirror added the bug label 2026-05-04 09:25:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#67080