Satori-generated SVG has improper escaping
vercel satori · vercel next
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| satori npm |
|
|
Original description
Satori is a library to convert HTML and CSS to SVG. Starting in version 0.0.27 and prior to version 0.33.5, Satori does not properly escape certain values before including them in generated SVG output. This can allow crafted values to be interpreted as SVG markup. The impact depends on how the generated SVG is consumed. Version 0.33.5 contains a patch. No complete workaround exists besides upgrading. Applications that cannot immediately upgrade should not render attacker-controlled content with Satori.
From the CVE record · GitHub_M