{"id":"CVE-2025-24018","summary":"YesWiki Vulnerable to Authenticated Stored XSS","details":"YesWiki is a wiki system written in PHP. In versions up to and including 4.4.5, it is possible for an authenticated user with rights to edit/create a page or comment to trigger a stored XSS which will be reflected on any page where the resource is loaded. The vulnerability makes use of the content edition feature and more specifically of the `{{attach}}` component allowing users to attach files/medias to a page. When a file is attached using the `{{attach}}` component, if the resource contained in the `file` attribute doesn't exist, then the server will generate a file upload button containing the filename. This vulnerability allows any malicious authenticated user that has the right to create a comment or edit a page to be able to steal accounts and therefore modify pages, comments, permissions, extract user data (emails), thus impacting the integrity, availability and confidentiality of a YesWiki instance. Version 4.5.0 contains a patch for the issue.","aliases":["GHSA-w59h-3x3q-3p6j"],"modified":"2026-08-12T03:51:08.716433744Z","published":"2025-01-21T17:02:04.924Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24018.json"},"references":[{"type":"WEB","url":"https://github.com/YesWiki/yeswiki/blob/v4.4.5/tools/attach/libs/attach.lib.php#L660"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24018.json"},{"type":"ADVISORY","url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-w59h-3x3q-3p6j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24018"},{"type":"FIX","url":"https://github.com/YesWiki/yeswiki/commit/c1e28b59394957902c31c850219e4504a20db98b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yeswiki/yeswiki","events":[{"introduced":"0"},{"fixed":"c840f08d23405dee81e7cfa28f6bc4ab6f9f4365"},{"fixed":"c1e28b59394957902c31c850219e4504a20db98b"}],"database_specific":{"cpe":"cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"4.5.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v4.4.3","v4.4.2","v4.4.1","v4.4.0","v4.3.1","v4.3.0","v4.2.2","v4.2.1","v4.2.0","v4.1.5","v4.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24018.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L"}]}