@intlify/vue-i18n-core@9.3.0-beta.12-2827f2c

@intlify/vue-i18n-core

  • latest version

    11.4.18

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @intlify/vue-i18n-core 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
    Improper Encoding or Escaping of Output

    @intlify/vue-i18n-core is a @intlify/vue-i18n-core

    Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the escapeParams function in packages/core-base/src/translate.ts, when a translation call passes both list and named interpolation values simultaneously. The original logic used else if to escape named values, meaning that when a list argument is also present, named values are never passed through escapeHtml. An attacker who controls a named interpolation value can inject unescaped HTML into the rendered output, enabling a cross-site scripting attack.

    Note: This is only exploitable when the escapeParameter option is explicitly set to true.

    How to fix Improper Encoding or Escaping of Output?

    Upgrade @intlify/vue-i18n-core to version 12.0.0-alpha.5, 11.4.14 or higher.

    >=12.0.0-alpha.1 <12.0.0-alpha.5>=9.2.0-alpha.7 <11.4.14
    • M
    Cross-site Scripting (XSS)

    @intlify/vue-i18n-core is a @intlify/vue-i18n-core

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when performing translations with escapeParameterHtml set to true. An attacker can execute arbitrary JavaScript code in the context of the user's browser by injecting malicious payloads into translation strings that are rendered using v-html, despite HTML escaping being enabled.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @intlify/vue-i18n-core to version 9.14.5, 10.0.8, 11.1.10 or higher.

    <9.14.5>=10.0.0-alpha.1 <10.0.8>=11.0.0-beta.0 <11.1.10
    • H
    Prototype Pollution

    @intlify/vue-i18n-core is a @intlify/vue-i18n-core

    Affected versions of this package are vulnerable to Prototype Pollution through the handleFlatJson function due to improper input validation. An attacker can introduce or modify properties within the global prototype chain, potentially causing denial of service or escalating to execute arbitrary commands within the application's context if the polluted property interacts with sensitive Node.js APIs like exec or eval.

    How to fix Prototype Pollution?

    Upgrade @intlify/vue-i18n-core to version 9.14.3, 10.0.6, 11.1.2 or higher.

    >=9.2.0 <9.14.3>=10.0.0-alpha.1 <10.0.6>=11.0.0-beta.0 <11.1.2