org.webjars.bower:moment@2.11.1 vulnerabilities

  • latest version

    2.29.4

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    2 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.bower:moment 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
    • H
    Regular Expression Denial of Service (ReDoS)

    org.webjars.bower:moment is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the preprocessRFC2822() function in from-string.js, when processing a very long crafted string (over 10k characters).

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.webjars.bower:moment to version 2.29.4 or higher.

    [,2.29.4)
    • H
    Directory Traversal

    org.webjars.bower:moment is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

    Affected versions of this package are vulnerable to Directory Traversal when a user provides a locale string which is directly used to switch moment locale.

    How to fix Directory Traversal?

    Upgrade org.webjars.bower:moment to version 2.29.3 or higher.

    [,2.29.3)
    • L
    Regular Expression Denial of Service (ReDoS)

    org.webjars.bower:moment is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). It used a regular expression (/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i) in order to parse dates specified as strings. This can cause a very low impact of about 2 seconds matching time for data 50k characters long.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.webjars.bower:moment to version 2.19.3 or higher.

    [,2.19.3)
    • M
    Regular Expression Denial of Service (ReDoS)

    moment is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

    Affected versions of the package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks for any locale that has separate format and standalone options and format input can be controlled by the user.

    An attacker can provide a specially crafted input to the format function, which nearly matches the pattern being matched. This will cause the regular expression matching to take a long time, all the while occupying the event loop and preventing it from processing other requests and making the server unavailable (a Denial of Service attack).

    [,2.15.2)
    • M
    Regular Expression Denial of Service (ReDoS)

    moment is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

    An attacker can provide a long value to the duration function, which nearly matches the pattern being matched. This will cause the regular expression matching to take a long time, all the while occupying the event loop and preventing it from processing other requests and making the server unavailable (a Denial of Service attack).

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade moment to version 2.11.2 or greater.

    [,2.11.2)