Scalable vector graphics (.svg) files are lightweight, XML-based images that render at any resolution. They’re usually harmless, but they can also contain active code, and hackers appear to be relying on them more often as a means to stealthily deliver malware.

    • ISO@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      resvg/usvg is a good implementation if you’re looking for one.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Nice.
        Perhaps would be useful for someone making a Lemmy Client.

        My thoughts were more in the lines of:

        • Firefox probably supports the JS in SVG
        • I would expect Inkscape to not execute the JS, but let it be when edited and saved.
        • For normal viewers on the desktop, I’d expect JS to be fully ignored.