{"answers":{"affected":"2 open source packages ship an affected version, including @sveltia/cms.","exploited":"There is no known exploitation of GHSA-97r8-rf7q-wmjw in the wild and no public exploit code.","fix":"Upgrade @sveltia/cms to 0.160.1 or later.","what":"GHSA-97r8-rf7q-wmjw is a cross-site scripting vulnerability in @sveltia/cms, published on 18 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-97r8-rf7q-wmjw and fix it if it is affected.\n\nWhat it is: GHSA-97r8-rf7q-wmjw is a cross-site scripting vulnerability in @sveltia/cms, published on 18 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-97r8-rf7q-wmjw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @sveltia/cms (npm): affected all versions; fixed in 0.160.1\n- @sveltia/cms (npm): affected all versions; fixed in 0.160.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-97r8-rf7q-wmjw/ (Markdown: https://insights.sbomify.com/GHSA-97r8-rf7q-wmjw/index.md)","id":"GHSA-97r8-rf7q-wmjw","markdown":"https://insights.sbomify.com/GHSA-97r8-rf7q-wmjw/index.md","name":"GHSA-97r8-rf7q-wmjw","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Sveltia CMS","requires_auth":"low_privilege","summary":"Stored XSS in Sveltia CMS allows attackers to execute arbitrary JavaScript in the browser of users viewing entry summaries.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nA stored cross-site scripting (XSS) vulnerability affected entry summary rendering in Sveltia CMS.\n\nEntry summaries that allowed limited Markdown were parsed, sanitized, and then HTML entities were decoded. This order allowed specially crafted entity-encoded HTML, such as encoded tags or event handler attributes, to become active HTML after sanitization. When the resulting summary was rendered in the CMS UI, arbitrary JavaScript could execute in the browser of a user viewing the affected entry list or search result.\n\nThe practical impact is limited in currently supported Sveltia CMS usage because the CMS is intended for a single developer or a small trusted team, and [open authoring](https://sveltiacms.app/en/docs/workflows/open) / untrusted multi-user authoring is not currently implemented. Exploitation requires the ability to place malicious content into the repository or content source that the CMS loads.\n\n### Patches\n\nThe issue has been patched by changing entry summary sanitization so that HTML entity decoding happens before sanitization for Markdown-enabled summaries. This ensures any decoded HTML is processed by the sanitizer before being rendered.\n\nUsers should upgrade to Sveltia CMS [v0.160.1](https://github.com/sveltia/sveltia-cms/releases/tag/v0.160.1) or later.\n\n### Workarounds\n\nIf upgrading is not immediately possible, avoid loading CMS content from untrusted authors and review content for entity-encoded HTML payloads in fields used by entry summaries.\n\nAdministrators can also reduce exposure by avoiding Markdown-enabled summary rendering for untrusted content where possible, or by ensuring repository write access is limited to trusted users only.\n\n### Resources\n\n- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\n- https://cwe.mitre.org/data/definitions/79.html","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Sveltia CMS: Stored XSS in entry summary rendering via entity-decoded HTML","id":"GHSA-97r8-rf7q-wmjw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.160.1"],"introduced":["0"],"last_affected":[],"package":"@sveltia/cms","purl":null,"source":"GHSA-97r8-rf7q-wmjw"},{"ecosystem":"npm","fixed":["0.160.1"],"introduced":["0"],"last_affected":[],"package":"@sveltia/cms","purl":"pkg:npm/%40sveltia/cms","source":"GHSA-97r8-rf7q-wmjw"}],"products":null,"published":"2026-05-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Stored XSS in Sveltia CMS allows attackers to execute arbitrary JavaScript in the browser of users viewing entry summaries.","url":"https://insights.sbomify.com/GHSA-97r8-rf7q-wmjw/"}