org.mvnpm:seroval@1.6.8

  • latest version

    1.7.7

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    22 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:seroval 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
    • L
    Cross-site Scripting (XSS)

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the serializeRegExp function in serializer.ts when serializing a RegExp whose source contains a < character. The function emits a RegExp literal directly into the output, allowing a sequence such as </script> or <!-- to appear verbatim in the serialized output and break out of the enclosing <script> element, enabling script injection in the consuming page. An attacker who can influence the RegExp value being serialized can inject arbitrary HTML or JavaScript into the page.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:seroval to version 1.6.11 or higher.

    [1.5.5,1.6.11)
    • M
    Arbitrary Code Injection

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the typed array serialization path in createTypedArrayNode and createBigIntTypedArrayNode, where the serializer uses value.constructor.name to write the constructor name after new in the generated output. An attacker who can supply a typed array with an own constructor property set to an object whose name is arbitrary code can inject that code into the serialized output, which is subsequently executed when deserialized.

    How to fix Arbitrary Code Injection?

    Upgrade org.mvnpm:seroval to version 1.6.11 or higher.

    [1.6.0,1.6.11)