@sveltia/cms@0.159.2

Sveltia CMS is a modern, lightweight, Git-based headless content management system.

  • latest version

    0.191.0

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    11 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @sveltia/cms package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    @sveltia/cms is a Sveltia CMS is a modern, lightweight, Git-based headless content management system.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the Markdown/RichText preview rendering process. An attacker can execute arbitrary JavaScript in the context of the CMS by injecting a crafted iframe element with a same-origin or relative path source into Markdown content, allowing access to the parent window's DOM, state, and browser storage, and enabling actions within the CMS context. This is only exploitable if the attacker can place malicious content into the repository or content source loaded by the CMS.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @sveltia/cms to version 0.167.3 or higher.

    <0.167.3
    • L
    Cross-site Scripting (XSS)

    @sveltia/cms is a Sveltia CMS is a modern, lightweight, Git-based headless content management system.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the entry summary rendering process. An attacker can execute arbitrary JavaScript in the browser of users viewing affected entry lists or search results by injecting specially crafted entity-encoded HTML into content sources loaded by the application. This is only exploitable if an attacker can place malicious content into the repository or content source that the application loads. #

    Workaround

    This vulnerability can be mitigated by avoiding loading content from untrusted authors, reviewing content for entity-encoded HTML payloads in fields used by entry summaries, disabling Markdown-enabled summary rendering for untrusted content, or restricting repository write access to trusted users only.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @sveltia/cms to version 0.160.1 or higher.

    <0.160.1