anchorme@0.8.2

A library to convert URLs to a clickable HTML anchor elements

  • latest version

    3.0.8

  • first published

    9 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    anchorme is an A library to convert URLs to a clickable HTML anchor elements

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.

    PoC

    const anchorme = require("anchorme").default;
    console.log(anchorme(`http://www.google.com"onmouseover='alert(1337)’`))
    

    How to fix Cross-site Scripting (XSS)?

    There is no fixed version for anchorme.

    *