CVE-2026-33679: Code.vikunja.io/api Vikjuna Bypasses Webhook SSRF Protections Vulnerability

MODERATE
Advisory Identifier: GHSA-g9xj-752q-xh63
CVSS 6.4
CWE-918
Published
Advisory Summary

CVE-2026-33679 is a MODERATE (CVSS 6.4) vikjuna bypasses webhook ssrf protections vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Code.vikunja.io/api libraries in the Go ecosystem. The issue involves vikjuna bypasses webhook ssrf protections during openid connect avatar download. Remediation is available by upgrading affected packages to version 2.2.1.

CVE-2026-33679 at a Glance

CVE Identifier CVE-2026-33679
GHSA Identifier GHSA-g9xj-752q-xh63
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Code.vikunja.io/api
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-33679

To remediate this vulnerability, upgrade all affected Code.vikunja.io/api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

code.vikunja.io/api fixed: 2.2.1
Upgrade code.vikunja.io/api to 2.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for code.vikunja.io/api

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33679, inspect your project dependencies for Code.vikunja.io/api:

inspect dependencies for code.vikunja.io/api

Analyze the terminal output to locate any version of Code.vikunja.io/api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Code.vikunja.io/api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The `DownloadImage` function in `pkg/utils/avatar.go` uses a bare `http.Client{}` with no SSRF protection when downloading user avatar images from the OpenID Connect `picture` claim URL. An attacker who controls their OIDC profile picture URL can force the Vikunja server to make HTTP GET requests to arbitrary internal or cloud metadata endpoints. This bypasses the SSRF protections that are correctly applied to the webhook system. ## Details When a user authenticates via OpenID Connect, Vikunja extracts the `picture` claim from the ID token or UserInfo endpoint and passes it to `syncUserAvatarFromOpenID`, which calls `utils.DownloadImage` with the attacker-controlled URL: **Claim extraction** (`pkg/modules/auth/openid/openid.go:70-78`): ```go type claims struct { Email string `json:"email"` Name string `json:"name"` PreferredUsername string `json:"preferred_username"` Nickname string `json:"nickname"` VikunjaGroups []map[string]interface{} `json:"vikunja_groups"` Picture string `json:"picture"` // ... } ``` **Avatar sync trigger** (`pkg/modules/auth/openid/openid.go:348-352`): ```go // Try sync avatar if available err = syncUserAvatarFromOpenID(s, u, cl.Picture) if err != nil { log.Errorf("Error syncing avatar for user %s: %v", u.Username, err) } ``` **Vulnerable download** (`pkg/utils/avatar.go:94-115`): ```go func DownloadImage(url string) ([]byte, error) { ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) if err != nil { return nil, fmt.Errorf("failed to create HTTP request: %w", err) } resp, err := (&http.Client{}).Do(req) // No SSRF protection // ... return io.ReadAll(resp.Body) // No size limit } ``` In contrast, the webhook system correctly applies SSRF protection (`pkg/models/webhooks.go:306-310`): ```go if !config.WebhooksAllowNonRoutableIPs.GetBool() { guardian := ssrf.New(ssrf.WithAnyPort()) transport.DialContext = (&net.Dialer{ Control: guardian.Safe, }).DialContext } ``` The avatar download path has none of this protection. There is no URL scheme validation, no IP address filtering, and no response body size limit. ## PoC **Prerequisites:** A Vikunja instance with OpenID Connect configured (e.g., Keycloak, Authentik). Attacker has an account on the OIDC provider. **Step 1:** Set up a listener to observe incoming requests: ```bash # On attacker-controlled server or internal service nc -lvp 8888 ``` **Step 2:** In the OIDC provider (e.g., Keycloak admin), update the attacker's user profile picture URL to an internal address: ``` http://169.254.169.254/latest/meta-data/iam/security-credentials/ ``` Or to probe internal services: ``` http://internal-service:8888/admin ``` **Step 3:** Log in to Vikunja via the OIDC provider. After the callback completes, the Vikunja server will make a GET request from its own network context to the URL set in the picture claim. **Step 4:** Observe the request arriving at the internal endpoint or listener. The request originates from the Vikunja server's IP, bypassing any network-level access controls that allow Vikunja server traffic. **Cloud metadata example (AWS):** ``` # Set picture URL to: http://169.254.169.254/latest/meta-data/iam/security-credentials/ # Vikunja server makes GET to this URL from its own network context # The response is read into memory (io.ReadAll) before image.Decode fails # The HTTP request itself reaches the metadata service ``` ## Impact - **Cloud metadata access:** Attacker can reach cloud instance metadata services (AWS IMDSv1 at `169.254.169.254`, GCP, Azure equivalents) from the Vikunja server's network position, potentially leaking IAM credentials, instance identity tokens, and configuration data. - **Internal network reconnaissance:** Port scanning and service discovery of internal hosts reachable from the Vikunja server by observing response timing and error messages. - **Internal service interaction:** Any internal service that acts on GET requests (cache purges, status endpoints, admin panels) can be triggered. - **Memory pressure:** The `io.ReadAll` call with no size limit means pointing the URL at a large resource could cause memory exhaustion on the Vikunja server, though the 3-second timeout partially mitigates this. - **Repeated exploitation:** The SSRF triggers on every OIDC login, allowing the attacker to iterate through different internal URLs by updating their OIDC profile between logins. ## Recommended Fix Apply the same SSRF protection used in webhooks to `DownloadImage`, and add a response body size limit: ```go // pkg/utils/avatar.go import ( "net" "code.dny.dev/ssrf" ) func DownloadImage(url string) ([]byte, error) { ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) if err != nil { return nil, fmt.Errorf("failed to create HTTP request: %w", err) } // SSRF protection: block requests to non-globally-routable IPs guardian := ssrf.New(ssrf.WithAnyPort()) client := &http.Client{ Transport: &http.Transport{ DialContext: (&net.Dialer{ Control: guardian.Safe, }).DialContext, }, } resp, err := client.Do(req) if err != nil { return nil, fmt.Errorf("failed to download image: %w", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("failed to download image, status code: %d", resp.StatusCode) } // Limit response body to 10MB to prevent memory exhaustion const maxAvatarSize = 10 * 1024 * 1024 return io.ReadAll(io.LimitReader(resp.Body, maxAvatarSize)) } ```

CVE-2026-33679 Affected Code.vikunja.io/api Versions

1 component(s)
Fixed Versions:
2.2.1
Product / Package Ecosystem Affected Versions Fixed Version
code.vikunja.io/api
Go
< 2.2.1
2.2.1

References

Frequently Asked Questions

What is CVE-2026-33679?
CVE-2026-33679 is a security vulnerability in Code.vikunja.io/api involving Vikjuna Bypasses Webhook SSRF Protections During OpenID Connect Avatar Download under CWE-918: Server-Side Request Forgery (SSRF).
Which Code.vikunja.io/api versions are affected?
Affected versions include releases prior to 2.2.1 across affected packages: code.vikunja.io/api.
What version fixes CVE-2026-33679?
Upgrading to 2.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is code.vikunja.io/api affected?
Yes, code.vikunja.io/api is affected in releases prior to 2.2.1. Upgrade your dependency to 2.2.1 or later.
What is the CVSS score of CVE-2026-33679?
CVE-2026-33679 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L.
What CWE is associated with CVE-2026-33679?
CVE-2026-33679 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2026-33679?
Run the dependency tree command: 'inspect dependencies for code.vikunja.io/api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g9xj-752q-xh63",
  "modified" : "2026-03-30T21:13:41Z",
  "published" : "2026-03-25T21:17:56Z",
  "aliases" : [ "CVE-2026-33679" ],
  "summary" : "Vikjuna Bypasses Webhook SSRF Protections During OpenID Connect Avatar Download ",
  "details" : "## Summary\n\nThe `DownloadImage` function in `pkg/utils/avatar.go` uses a bare `http.Client{}` with no SSRF protection when downloading user avatar images from the OpenID Connect `picture` claim URL. An attacker who controls their OIDC profile picture URL can force the Vikunja server to make HTTP GET requests to arbitrary internal or cloud metadata endpoints. This bypasses the SSRF protections that are correctly applied to the webhook system.\n\n## Details\n\nWhen a user authenticates via OpenID Connect, Vikunja extracts the `picture` claim from the ID token or UserInfo endpoint and passes it to `syncUserAvatarFromOpenID`, which calls `utils.DownloadImage` with the attacker-controlled URL:\n\n**Claim extraction** (`pkg/modules/auth/openid/openid.go:70-78`):\n```go\ntype claims struct {\n\tEmail              string                   `json:\"email\"`\n\tName               string                   `json:\"name\"`\n\tPreferredUsername   string                   `json:\"preferred_username\"`\n\tNickname           string                   `json:\"nickname\"`\n\tVikunjaGroups      []map[string]interface{} `json:\"vikunja_groups\"`\n\tPicture            string                   `json:\"picture\"`\n\t// ...\n}\n```\n\n**Avatar sync trigger** (`pkg/modules/auth/openid/openid.go:348-352`):\n```go\n// Try sync avatar if available\nerr = syncUserAvatarFromOpenID(s, u, cl.Picture)\nif err != nil {\n\tlog.Errorf(\"Error syncing avatar for user %s: %v\", u.Username, err)\n}\n```\n\n**Vulnerable download** (`pkg/utils/avatar.go:94-115`):\n```go\nfunc DownloadImage(url string) ([]byte, error) {\n\tctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)\n\tdefer cancel()\n\n\treq, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create HTTP request: %w\", err)\n\t}\n\n\tresp, err := (&http.Client{}).Do(req)  // No SSRF protection\n\t// ...\n\treturn io.ReadAll(resp.Body)  // No size limit\n}\n```\n\nIn contrast, the webhook system correctly applies SSRF protection (`pkg/models/webhooks.go:306-310`):\n```go\nif !config.WebhooksAllowNonRoutableIPs.GetBool() {\n\tguardian := ssrf.New(ssrf.WithAnyPort())\n\ttransport.DialContext = (&net.Dialer{\n\t\tControl: guardian.Safe,\n\t}).DialContext\n}\n```\n\nThe avatar download path has none of this protection. There is no URL scheme validation, no IP address filtering, and no response body size limit.\n\n## PoC\n\n**Prerequisites:** A Vikunja instance with OpenID Connect configured (e.g., Keycloak, Authentik). Attacker has an account on the OIDC provider.\n\n**Step 1:** Set up a listener to observe incoming requests:\n```bash\n# On attacker-controlled server or internal service\nnc -lvp 8888\n```\n\n**Step 2:** In the OIDC provider (e.g., Keycloak admin), update the attacker's user profile picture URL to an internal address:\n```\nhttp://169.254.169.254/latest/meta-data/iam/security-credentials/\n```\nOr to probe internal services:\n```\nhttp://internal-service:8888/admin\n```\n\n**Step 3:** Log in to Vikunja via the OIDC provider. After the callback completes, the Vikunja server will make a GET request from its own network context to the URL set in the picture claim.\n\n**Step 4:** Observe the request arriving at the internal endpoint or listener. The request originates from the Vikunja server's IP, bypassing any network-level access controls that allow Vikunja server traffic.\n\n**Cloud metadata example (AWS):**\n```\n# Set picture URL to:\nhttp://169.254.169.254/latest/meta-data/iam/security-credentials/\n\n# Vikunja server makes GET to this URL from its own network context\n# The response is read into memory (io.ReadAll) before image.Decode fails\n# The HTTP request itself reaches the metadata service\n```\n\n## Impact\n\n- **Cloud metadata access:** Attacker can reach cloud instance metadata services (AWS IMDSv1 at `169.254.169.254`, GCP, Azure equivalents) from the Vikunja server's network position, potentially leaking IAM credentials, instance identity tokens, and configuration data.\n- **Internal network reconnaissance:** Port scanning and service discovery of internal hosts reachable from the Vikunja server by observing response timing and error messages.\n- **Internal service interaction:** Any internal service that acts on GET requests (cache purges, status endpoints, admin panels) can be triggered.\n- **Memory pressure:** The `io.ReadAll` call with no size limit means pointing the URL at a large resource could cause memory exhaustion on the Vikunja server, though the 3-second timeout partially mitigates this.\n- **Repeated exploitation:** The SSRF triggers on every OIDC login, allowing the attacker to iterate through different internal URLs by updating their OIDC profile between logins.\n\n## Recommended Fix\n\nApply the same SSRF protection used in webhooks to `DownloadImage`, and add a response body size limit:\n\n```go\n// pkg/utils/avatar.go\nimport (\n\t\"net\"\n\t\"code.dny.dev/ssrf\"\n)\n\nfunc DownloadImage(url string) ([]byte, error) {\n\tctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)\n\tdefer cancel()\n\n\treq, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create HTTP request: %w\", err)\n\t}\n\n\t// SSRF protection: block requests to non-globally-routable IPs\n\tguardian := ssrf.New(ssrf.WithAnyPort())\n\tclient := &http.Client{\n\t\tTransport: &http.Transport{\n\t\t\tDialContext: (&net.Dialer{\n\t\t\t\tControl: guardian.Safe,\n\t\t\t}).DialContext,\n\t\t},\n\t}\n\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to download image: %w\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"failed to download image, status code: %d\", resp.StatusCode)\n\t}\n\n\t// Limit response body to 10MB to prevent memory exhaustion\n\tconst maxAvatarSize = 10 * 1024 * 1024\n\treturn io.ReadAll(io.LimitReader(resp.Body, maxAvatarSize))\n}\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "code.vikunja.io/api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.2.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/go-vikunja/vikunja/security/advisories/GHSA-g9xj-752q-xh63"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33679"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-vikunja/vikunja/commit/363aa6642352b08fc8bc6aaff2f3a550393af1cf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/go-vikunja/vikunja"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2026-4852"
  }, {
    "type" : "WEB",
    "url" : "https://vikunja.io/changelog/vikunja-v2.2.2-was-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-25T21:17:56Z",
    "nvd_published_at" : "2026-03-24T16:16:35Z"
  }
}