postcss@8.4.17

Tool for transforming styles with JS plugins

  • latest version

    8.5.25

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the postcss 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
    • H
    Directory Traversal

    postcss is a PostCSS is a tool for transforming styles with JS plugins.

    Affected versions of this package are vulnerable to Directory Traversal via the loadMap process. An attacker can access the contents of arbitrary .map files on the filesystem by submitting crafted CSS containing a sourceMappingURL comment with a path traversal or absolute path, which is then loaded and its content merged into the resulting source map returned by the process.

    How to fix Directory Traversal?

    Upgrade postcss to version 8.5.18 or higher.

    <8.5.18
    • H
    Directory Traversal

    postcss is a PostCSS is a tool for transforming styles with JS plugins.

    Affected versions of this package are vulnerable to Directory Traversal via the process function. An attacker can access arbitrary files and obtain the first ~10 bytes of their contents by supplying a crafted sourceMappingURL comment in CSS input, which is parsed and dereferenced without proper validation. This can lead to disclosure of sensitive information, confirmation of file existence, and potential denial of service by targeting large or special files.

    How to fix Directory Traversal?

    Upgrade postcss to version 8.5.12 or higher.

    <8.5.12
    • M
    Cross-site Scripting (XSS)

    postcss is a PostCSS is a tool for transforming styles with JS plugins.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in CSS Stringify Output. An attacker can execute arbitrary JavaScript code in the context of the affected web page by submitting crafted CSS containing </style> sequences that are not properly escaped when embedded within HTML <style> tags.

    How to fix Cross-site Scripting (XSS)?

    Upgrade postcss to version 8.5.10 or higher.

    <8.5.10
    • M
    Improper Input Validation

    postcss is a PostCSS is a tool for transforming styles with JS plugins.

    Affected versions of this package are vulnerable to Improper Input Validation when parsing external Cascading Style Sheets (CSS) with linters using PostCSS. An attacker can cause discrepancies by injecting malicious CSS rules, such as @font-face{ font:(\r/*);}. This vulnerability is because of an insecure regular expression usage in the RE_BAD_BRACKET variable.

    How to fix Improper Input Validation?

    Upgrade postcss to version 8.4.31 or higher.

    <8.4.31