mailgen@1.0.28 vulnerabilities

Generates clean, responsive HTML e-mails for sending transactional mail.

  • latest version

    2.0.32

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    14 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mailgen 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)

    mailgen is a Generates clean, responsive HTML e-mails for sending transactional mail.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the generatePlaintext function. An attacker can execute arbitrary JavaScript code in the context of the victim's browser by injecting specially crafted unicode-encoded HTML tags into user-controlled input, which are improperly sanitized and later decoded.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mailgen to version 2.0.32 or higher.

    <2.0.32
    • L
    Cross-site Scripting (XSS)

    mailgen is a Generates clean, responsive HTML e-mails for sending transactional mail.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the generatePlaintext() function. An attacker can get access to sensitive information by injecting encoded HTML content into user-supplied function input that bypasses validation and later gets decoded and rendered as executable content in the user's browser.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mailgen to version 2.0.31 or higher.

    <2.0.31
    • M
    Cross-site Scripting (XSS)

    mailgen is a Generates clean, responsive HTML e-mails for sending transactional mail.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the generatePlaintext() function. An attacker can inject arbitrary HTML content into plaintext emails by supplying crafted user-generated input. This is only exploitable if user-supplied content is passed directly to the generatePlaintext() function without proper sanitization.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mailgen to version 2.0.30 or higher.

    <2.0.30