anchorme@1.0.3 vulnerabilities

A library to convert URLs to a clickable HTML anchor elements

Direct Vulnerabilities

Known vulnerabilities in the anchorme package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

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.

*