Affected by GO-2025-3548
and 8 other vulnerabilities
GO-2025-3548: Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP in github.com/ollama/ollama
GO-2025-3557: Ollama Allocation of Resources Without Limits or Throttling vulnerability in github.com/ollama/ollama
GO-2025-3558: Ollama Allows Out-of-Bounds Read in github.com/ollama/ollama
GO-2025-3559: Ollama Divide By Zero vulnerability in github.com/ollama/ollama
GO-2025-3582: Ollama Denial of Service (DoS) via Null Pointer Dereference in github.com/ollama/ollama
GO-2025-3689: Ollama Divide by Zero Vulnerability in github.com/ollama/ollama
GO-2025-3695: Ollama Server Vulnerable to Denial of Service (DoS) Attack in github.com/ollama/ollama
GO-2025-3824: Ollama vulnerable to Cross-Domain Token Exposure in github.com/ollama/ollama
GO-2025-4251: Ollama has missing authentication enabling attackers to perform model management operations in github.com/ollama/ollama
command
Version:
v0.14.3
Opens a new window with list of versions in this module.
Published: Jan 20, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Extracts code examples from MDX files to a temp directory so you can run them.
Usage
go run docs/tools/extract-examples/main.go <mdx-file>
Example
go run docs/tools/extract-examples/main.go docs/api/openai-compatibility.mdx
Output:
Extracting code examples to: /var/folders/vq/wfm2g6k917d3ldzpjdxc8ph00000gn/T/mdx-examples-3271754368
- 01_basic.py
- 01_basic.js
- 01_basic.sh
- 02_responses.py
- 02_responses.js
- 02_responses.sh
- 03_vision.py
- 03_vision.js
- 03_vision.sh
Extracted 9 file(s) to /var/folders/vq/wfm2g6k917d3ldzpjdxc8ph00000gn/T/mdx-examples-3271754368
To run examples:
cd /var/folders/vq/wfm2g6k917d3ldzpjdxc8ph00000gn/T/mdx-examples-3271754368
npm install # for JS examples
then run individual files with `node file.js`, `python file.py`, `bash file.sh`
How it works
- Parses MDX files looking for fenced code blocks with filenames (e.g.,
```python basic.py)
- Groups examples by their
<CodeGroup> and prefixes filenames with 01_, 02_, etc.
- Writes all extracted files to a temp directory
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.