Vulnerability library
Security checkJuly 20, 2026

defuddle vulnerable to XSS via unescaped string interpolation in _findContentBySchemaText image tag

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmdefuddle

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The _findContentBySchemaText method in src/defuddle.ts interpolates image src and alt attributes directly into an HTML string without escaping:

An attacker can use a " in the alt attribute to break out of the attribute context and inject event handlers.

Recommendation

Update the defuddle package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 0.7.0
  • Patched version(s): 0.9.0

References

Could your website be exposed too?

SmartScanner can check your website for defuddle vulnerable to XSS via unescaped string interpolation in _findContentBySchemaText image tag and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 20, 2026