{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-27616",
        "tracking": {
            "current_release_date": "2026-03-27T20:17:41.376368Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-27616",
            "initial_release_date": "2026-02-25T22:25:32.715481Z",
            "revision_history": [
                {
                    "date": "2026-02-25T22:25:32.715481Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-25T22:25:37.063800Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-02-25T22:39:00.575265Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-25T22:39:03.034331Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-25T23:39:38.718732Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-02-25T23:39:41.641125Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T00:12:45.709652Z",
                    "number": "7",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T00:12:53.670684Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T11:32:37.663857Z",
                    "number": "9",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (41).| Products created (1).| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T11:32:43.615436Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T14:13:48.464221Z",
                    "number": "11",
                    "summary": "Source created.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-02-26T14:13:51.142608Z",
                    "number": "12",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T21:59:38.697243Z",
                    "number": "13",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-02-27T22:39:40.467490Z",
                    "number": "14",
                    "summary": "References created (2)."
                },
                {
                    "date": "2026-02-27T22:39:47.299163Z",
                    "number": "15",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-28T06:12:50.894204Z",
                    "number": "16",
                    "summary": "References created (2)."
                },
                {
                    "date": "2026-03-05T17:24:45.954460Z",
                    "number": "17",
                    "summary": "Products connected (1).| Product Identifiers created (1).| Exploits created (1)."
                },
                {
                    "date": "2026-03-05T17:24:48.788393Z",
                    "number": "18",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-09T06:12:45.627669Z",
                    "number": "19",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| References created (3)."
                },
                {
                    "date": "2026-03-09T06:12:49.884734Z",
                    "number": "20",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-20T09:40:30.874789Z",
                    "number": "21",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-20T09:40:33.129388Z",
                    "number": "22",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-27T19:49:11.248211Z",
                    "number": "23",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (7).| CWES updated (1)."
                },
                {
                    "date": "2026-03-27T19:49:19.423404Z",
                    "number": "24",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "24"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/>=0|<=0.24.6",
                                    "product_id": "CSAFPID-5597060"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "api"
                    },
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/0.21.0",
                                "product": {
                                    "name": "vers:unknown/0.21.0",
                                    "product_id": "CSAFPID-5602633"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.0.0",
                                "product": {
                                    "name": "vers:unknown/<2.0.0",
                                    "product_id": "CSAFPID-5712844"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.1",
                                "product": {
                                    "name": "vers:unknown/v0.1",
                                    "product_id": "CSAFPID-5602634"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10",
                                "product": {
                                    "name": "vers:unknown/v0.10",
                                    "product_id": "CSAFPID-5602635"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11",
                                "product": {
                                    "name": "vers:unknown/v0.11",
                                    "product_id": "CSAFPID-5602636"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.12",
                                "product": {
                                    "name": "vers:unknown/v0.12",
                                    "product_id": "CSAFPID-5602637"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13",
                                "product": {
                                    "name": "vers:unknown/v0.13",
                                    "product_id": "CSAFPID-5602638"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13.1",
                                "product": {
                                    "name": "vers:unknown/v0.13.1",
                                    "product_id": "CSAFPID-5602639"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.0",
                                "product": {
                                    "name": "vers:unknown/v0.14.0",
                                    "product_id": "CSAFPID-5602640"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.15.0",
                                "product": {
                                    "name": "vers:unknown/v0.15.0",
                                    "product_id": "CSAFPID-5602641"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.16.0",
                                "product": {
                                    "name": "vers:unknown/v0.16.0",
                                    "product_id": "CSAFPID-5602642"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.17.0",
                                "product": {
                                    "name": "vers:unknown/v0.17.0",
                                    "product_id": "CSAFPID-5602643"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.0",
                                "product": {
                                    "name": "vers:unknown/v0.18.0",
                                    "product_id": "CSAFPID-5602644"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.1",
                                "product": {
                                    "name": "vers:unknown/v0.18.1",
                                    "product_id": "CSAFPID-5602645"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.0",
                                "product": {
                                    "name": "vers:unknown/v0.19.0",
                                    "product_id": "CSAFPID-5602646"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.1",
                                "product": {
                                    "name": "vers:unknown/v0.19.1",
                                    "product_id": "CSAFPID-5602647"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.2",
                                "product": {
                                    "name": "vers:unknown/v0.19.2",
                                    "product_id": "CSAFPID-5602648"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.2",
                                "product": {
                                    "name": "vers:unknown/v0.2",
                                    "product_id": "CSAFPID-5602649"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.0",
                                "product": {
                                    "name": "vers:unknown/v0.20.0",
                                    "product_id": "CSAFPID-5602650"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.1",
                                "product": {
                                    "name": "vers:unknown/v0.20.1",
                                    "product_id": "CSAFPID-5602651"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.3",
                                "product": {
                                    "name": "vers:unknown/v0.20.3",
                                    "product_id": "CSAFPID-5602652"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.4",
                                "product": {
                                    "name": "vers:unknown/v0.20.4",
                                    "product_id": "CSAFPID-5602653"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.5",
                                "product": {
                                    "name": "vers:unknown/v0.20.5",
                                    "product_id": "CSAFPID-5602654"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.21.0",
                                "product": {
                                    "name": "vers:unknown/v0.21.0",
                                    "product_id": "CSAFPID-5602655"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.0",
                                "product": {
                                    "name": "vers:unknown/v0.22.0",
                                    "product_id": "CSAFPID-5602656"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.1",
                                "product": {
                                    "name": "vers:unknown/v0.22.1",
                                    "product_id": "CSAFPID-5602657"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.23.0",
                                "product": {
                                    "name": "vers:unknown/v0.23.0",
                                    "product_id": "CSAFPID-5602658"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.24.1",
                                "product": {
                                    "name": "vers:unknown/v0.24.1",
                                    "product_id": "CSAFPID-5602659"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.3",
                                "product": {
                                    "name": "vers:unknown/v0.3",
                                    "product_id": "CSAFPID-5602660"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4",
                                "product": {
                                    "name": "vers:unknown/v0.4",
                                    "product_id": "CSAFPID-5602661"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5",
                                "product": {
                                    "name": "vers:unknown/v0.5",
                                    "product_id": "CSAFPID-5602662"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6",
                                "product": {
                                    "name": "vers:unknown/v0.6",
                                    "product_id": "CSAFPID-5602663"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7",
                                "product": {
                                    "name": "vers:unknown/v0.7",
                                    "product_id": "CSAFPID-5602664"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8",
                                "product": {
                                    "name": "vers:unknown/v0.8",
                                    "product_id": "CSAFPID-5602665"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9",
                                "product": {
                                    "name": "vers:unknown/v0.9",
                                    "product_id": "CSAFPID-5602666"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0",
                                    "product_id": "CSAFPID-5602667"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc0",
                                    "product_id": "CSAFPID-5602668"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc1",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc1",
                                    "product_id": "CSAFPID-5602669"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc2",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc2",
                                    "product_id": "CSAFPID-5602670"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc3",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc3",
                                    "product_id": "CSAFPID-5602671"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc4",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc4",
                                    "product_id": "CSAFPID-5602672"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.1.0",
                                "product": {
                                    "name": "vers:unknown/v1.1.0",
                                    "product_id": "CSAFPID-5727729"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/vue3",
                                "product": {
                                    "name": "vers:unknown/vue3",
                                    "product_id": "CSAFPID-5602673"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "go-vikunja"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/<=0.24.6",
                                    "product_id": "CSAFPID-5847612"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "go/code.vikunja.io/api"
                    }
                ],
                "category": "vendor",
                "name": "code.vikunja.io"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.0.0",
                                "product": {
                                    "name": "vers:unknown/<2.0.0",
                                    "product_id": "CSAFPID-5763289",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:vikunja:vikunja:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "vikunja"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-27616",
            "cwe": {
                "id": "CWE-79",
                "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload. The application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user. Because the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload. Version 2.0.0 patches this issue.",
                    "title": "nvd - https://nvd.nist.gov/vuln/detail/CVE-2026-27616"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload. The application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user. Because the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload. Version 2.0.0 patches this issue.",
                    "title": "cveprojectv5 - https://www.cve.org/CVERecord?id=CVE-2026-27616"
                },
                {
                    "category": "description",
                    "text": "**Details**\nThe application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload.\n\nThe application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user.\n\nBecause the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload.\n\nKey security issues identified:\n\n _No server-side sanitization of SVG content.\nSVG attachments are rendered inline instead of being forced as a download.\nEmbedded JavaScript within SVG files is allowed to execute.\n Authentication tokens stored in localStorage are accessible to client-side scripts._\n\n**PoC**\n\n_**Tested Environment**_\n\n[ ] Application version: 1.1.0\n[ ] Deployment type: Self-hosted\n\n**Steps to Reproduce**\n\n1. Log in to an account.\n2. Go to Projects and Create a new task or open an existing task.\n3. Upload the following SVG file as an attachment:\n\n```\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<svg\n onload=\"alert(localStorage.getItem('token'))\"\n xmlns=\"http://www.w3.org/2000/svg\">\n</svg>\n\n```\n4. After uploading ,save the Task and open the project , copy the direct URL of the attachment.\n5. Open the attachment URL in a new browser tab.\n6. The embedded JavaScript executes immediately and displays the authentication token stored in `localStorage`.\n\nThis confirms that arbitrary JavaScript embedded in an uploaded SVG file executes within the application's context.\n\n**Impact**\n\nThis vulnerability is classified as **Stored Cross-Site Scripting (XSS).**\n\n**Potential impact includes:**\n\nExecution of arbitrary JavaScript in a victim’s browser.\nExposure of authentication tokens.\nPotential account takeover.\nAbility to perform authenticated actions on behalf of the victim.\nPossible privilege escalation if higher-privileged users open the malicious attachment.\nAny authenticated user who accesses a malicious SVG attachment may be affected.\n\n**Recommendations**\n\nThis vulnerability can be mitigated by implementing proper server-side sanitization of SVG uploads and preventing inline execution of uploaded files.\n\nSpecifically:\n\n- Sanitize all uploaded SVG files to remove <script> elements, event handlers (e.g., onload), and other executable content.\n- Serve attachments with Content-Disposition: attachment to prevent inline rendering.\n- Implement a strict Content Security Policy (CSP) to block script execution within uploaded files.\n- Store authentication tokens in HttpOnly, Secure cookies instead of localStorage to prevent JavaScript access.\n- Applying these controls will prevent stored XSS via SVG uploads and significantly reduce the risk of token exposure and account takeover.\n\n**Attachment**\n[Stored XSS Proof of concept.pdf](https://github.com/user-attachments/files/25414870/Stored.XSS.Proof.of.concept.pdf)\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.0.0.",
                    "title": "github - https://github.com/advisories/GHSA-7jp5-298q-jg98"
                },
                {
                    "category": "description",
                    "text": "**Details**\nThe application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload.\n\nThe application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user.\n\nBecause the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload.\n\nKey security issues identified:\n\n _No server-side sanitization of SVG content.\nSVG attachments are rendered inline instead of being forced as a download.\nEmbedded JavaScript within SVG files is allowed to execute.\n Authentication tokens stored in localStorage are accessible to client-side scripts._\n\n**PoC**\n\n_**Tested Environment**_\n\n[ ] Application version: 1.1.0\n[ ] Deployment type: Self-hosted\n\n**Steps to Reproduce**\n\n1. Log in to an account.\n2. Go to Projects and Create a new task or open an existing task.\n3. Upload the following SVG file as an attachment:\n\n```\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<svg\n onload=\"alert(localStorage.getItem('token'))\"\n xmlns=\"http://www.w3.org/2000/svg\">\n</svg>\n\n```\n4. After uploading ,save the Task and open the project , copy the direct URL of the attachment.\n5. Open the attachment URL in a new browser tab.\n6. The embedded JavaScript executes immediately and displays the authentication token stored in `localStorage`.\n\nThis confirms that arbitrary JavaScript embedded in an uploaded SVG file executes within the application's context.\n\n**Impact**\n\nThis vulnerability is classified as **Stored Cross-Site Scripting (XSS).**\n\n**Potential impact includes:**\n\nExecution of arbitrary JavaScript in a victim’s browser.\nExposure of authentication tokens.\nPotential account takeover.\nAbility to perform authenticated actions on behalf of the victim.\nPossible privilege escalation if higher-privileged users open the malicious attachment.\nAny authenticated user who accesses a malicious SVG attachment may be affected.\n\n**Recommendations**\n\nThis vulnerability can be mitigated by implementing proper server-side sanitization of SVG uploads and preventing inline execution of uploaded files.\n\nSpecifically:\n\n- Sanitize all uploaded SVG files to remove <script> elements, event handlers (e.g., onload), and other executable content.\n- Serve attachments with Content-Disposition: attachment to prevent inline rendering.\n- Implement a strict Content Security Policy (CSP) to block script execution within uploaded files.\n- Store authentication tokens in HttpOnly, Secure cookies instead of localStorage to prevent JavaScript access.\n- Applying these controls will prevent stored XSS via SVG uploads and significantly reduce the risk of token exposure and account takeover.\n\n**Attachment**\n[Stored XSS Proof of concept.pdf](https://github.com/user-attachments/files/25414870/Stored.XSS.Proof.of.concept.pdf)\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.0.0.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-7jp5-298q-jg98.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload. The application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user. Because the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload. Version 2.0.0 patches this issue.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27616.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Vikunja: Stored XSS via Unsanitized SVG Attachment Upload Leads to Token Exposure in code.vikunja.io/api",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4553.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "**Details**\nThe application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload.\n\nThe application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user.\n\nBecause the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload.\n\nKey security issues identified:\n\n_No server-side sanitization of SVG content.\nSVG attachments are rendered inline instead of being forced as a download.\nEmbedded JavaScript within SVG files is allowed to execute.\nAuthentication tokens stored in localStorage are accessible to client-side scripts._\n\n**PoC**\n\n_**Tested Environment**_\n\n[ ] Application version: 1.1.0\n[ ] Deployment type: Self-hosted\n\n**Steps to Reproduce**\n\n1. Log in to an account.\n2. Go to Projects and Create a new task or open an existing task.\n3. Upload the following SVG file as an attachment:\n\n```\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<svg\nonload=\"alert(localStorage.getItem('token'))\"\nxmlns=\"http://www.w3.org/2000/svg\">\n</svg>\n\n```\n4. After uploading ,save the Task and open the project , copy the direct URL of the attachment.\n5. Open the attachment URL in a new browser tab.\n6. The embedded JavaScript executes immediately and displays the authentication token stored in `localStorage`.\n\nThis confirms that arbitrary JavaScript embedded in an uploaded SVG file executes within the application's context.\n\n**Impact**\n\nThis vulnerability is classified as **Stored Cross-Site Scripting (XSS).**\n\n**Potential impact includes:**\n\nExecution of arbitrary JavaScript in a victim’s browser.\nExposure of authentication tokens.\nPotential account takeover.\nAbility to perform authenticated actions on behalf of the victim.\nPossible privilege escalation if higher-privileged users open the malicious attachment.\nAny authenticated user who accesses a malicious SVG attachment may be affected.\n\n**Recommendations**\n\nThis vulnerability can be mitigated by implementing proper server-side sanitization of SVG uploads and preventing inline execution of uploaded files.\n\nSpecifically:\n\n- Sanitize all uploaded SVG files to remove <script> elements, event handlers (e.g., onload), and other executable content.\n- Serve attachments with Content-Disposition: attachment to prevent inline rendering.\n- Implement a strict Content Security Policy (CSP) to block script execution within uploaded files.\n- Store authentication tokens in HttpOnly, Secure cookies instead of localStorage to prevent JavaScript access.\n- Applying these controls will prevent stored XSS via SVG uploads and significantly reduce the risk of token exposure and account takeover.\n\n**Attachment**\n[Stored XSS Proof of concept.pdf](https://github.com/user-attachments/files/25414870/Stored.XSS.Proof.of.concept.pdf)\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.0.0.",
                    "title": "gitlab - https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-27616.yml/raw"
                },
                {
                    "category": "other",
                    "text": "0.00037",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "3.7",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "Exploit code publicly available, There is exploit data available from source Nvd, Is related to (a version of) an uncommon product",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5712844",
                    "CSAFPID-5597060",
                    "CSAFPID-5602633",
                    "CSAFPID-5602634",
                    "CSAFPID-5602635",
                    "CSAFPID-5602636",
                    "CSAFPID-5602637",
                    "CSAFPID-5602638",
                    "CSAFPID-5602639",
                    "CSAFPID-5602640",
                    "CSAFPID-5602641",
                    "CSAFPID-5602642",
                    "CSAFPID-5602643",
                    "CSAFPID-5602644",
                    "CSAFPID-5602645",
                    "CSAFPID-5602646",
                    "CSAFPID-5602647",
                    "CSAFPID-5602648",
                    "CSAFPID-5602649",
                    "CSAFPID-5602650",
                    "CSAFPID-5602651",
                    "CSAFPID-5602652",
                    "CSAFPID-5602653",
                    "CSAFPID-5602654",
                    "CSAFPID-5602655",
                    "CSAFPID-5602656",
                    "CSAFPID-5602657",
                    "CSAFPID-5602658",
                    "CSAFPID-5602659",
                    "CSAFPID-5602660",
                    "CSAFPID-5602661",
                    "CSAFPID-5602662",
                    "CSAFPID-5602663",
                    "CSAFPID-5602664",
                    "CSAFPID-5602665",
                    "CSAFPID-5602666",
                    "CSAFPID-5602667",
                    "CSAFPID-5602668",
                    "CSAFPID-5602669",
                    "CSAFPID-5602670",
                    "CSAFPID-5602671",
                    "CSAFPID-5602672",
                    "CSAFPID-5602673",
                    "CSAFPID-5727729",
                    "CSAFPID-5763289",
                    "CSAFPID-5847612"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27616"
                },
                {
                    "category": "external",
                    "summary": "Source raw - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-27616"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://www.cve.org/CVERecord?id=CVE-2026-27616"
                },
                {
                    "category": "external",
                    "summary": "Source raw - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/27xxx/CVE-2026-27616.json"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://github.com/advisories/GHSA-7jp5-298q-jg98"
                },
                {
                    "category": "external",
                    "summary": "Source raw - github",
                    "url": "https://api.github.com/advisories/GHSA-7jp5-298q-jg98"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-7jp5-298q-jg98.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27616.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-27616"
                },
                {
                    "category": "external",
                    "summary": "Source raw - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4553.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - gitlab",
                    "url": "https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-27616.yml/raw"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/go-vikunja/vikunja/security/advisories/GHSA-7jp5-298q-jg98"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/user-attachments/files/25414870/Stored.XSS.Proof.of.concept.pdf"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://vikunja.io/changelog/vikunja-v2.0.0-was-released"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://github.com/go-vikunja/vikunja/releases/tag/v2.0.0"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab",
                    "url": "https://github.com/advisories/GHSA-7jp5-298q-jg98"
                },
                {
                    "category": "external",
                    "summary": "Reference - osv",
                    "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27616.json"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27616"
                },
                {
                    "category": "external",
                    "summary": "Reference - gitlab",
                    "url": "https://github.com/go-vikunja/vikunja"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N",
                        "baseScore": 7.3,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-5597060",
                        "CSAFPID-5602633",
                        "CSAFPID-5602634",
                        "CSAFPID-5602635",
                        "CSAFPID-5602636",
                        "CSAFPID-5602637",
                        "CSAFPID-5602638",
                        "CSAFPID-5602639",
                        "CSAFPID-5602640",
                        "CSAFPID-5602641",
                        "CSAFPID-5602642",
                        "CSAFPID-5602643",
                        "CSAFPID-5602644",
                        "CSAFPID-5602645",
                        "CSAFPID-5602646",
                        "CSAFPID-5602647",
                        "CSAFPID-5602648",
                        "CSAFPID-5602649",
                        "CSAFPID-5602650",
                        "CSAFPID-5602651",
                        "CSAFPID-5602652",
                        "CSAFPID-5602653",
                        "CSAFPID-5602654",
                        "CSAFPID-5602655",
                        "CSAFPID-5602656",
                        "CSAFPID-5602657",
                        "CSAFPID-5602658",
                        "CSAFPID-5602659",
                        "CSAFPID-5602660",
                        "CSAFPID-5602661",
                        "CSAFPID-5602662",
                        "CSAFPID-5602663",
                        "CSAFPID-5602664",
                        "CSAFPID-5602665",
                        "CSAFPID-5602666",
                        "CSAFPID-5602667",
                        "CSAFPID-5602668",
                        "CSAFPID-5602669",
                        "CSAFPID-5602670",
                        "CSAFPID-5602671",
                        "CSAFPID-5602672",
                        "CSAFPID-5602673",
                        "CSAFPID-5712844",
                        "CSAFPID-5727729",
                        "CSAFPID-5763289",
                        "CSAFPID-5847612"
                    ]
                }
            ],
            "title": "CVE-2026-27616"
        }
    ]
}