@prompty/core@0.1.2

Prompty core package

  • latest version

    0.1.5

  • latest non vulnerable version

  • first published

    8 months ago

  • latest version published

    29 days ago

  • licenses detected

    • >=0.1.2 <2.0.0-alpha.1
  • Direct Vulnerabilities

    Known vulnerabilities in the @prompty/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
    • C
    Arbitrary Code Injection

    @prompty/core is a Prompty core package

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the NunjucksRenderer in nunjucks.ts, which passes user-controlled inputs directly to env.renderString without restricting member access or function calls within the Nunjucks template engine. An unauthenticated remote attacker can supply a template payload that traverses prototype properties (e.g., __proto__, constructor, prototype) or invokes arbitrary JavaScript functions through Nunjucks' callWrap mechanism, achieving remote code execution on the server.

    How to fix Arbitrary Code Injection?

    Upgrade @prompty/core to version 0.1.5, 2.0.0-beta.4 or higher.

    <0.1.5>=2.0.0-alpha.1 <2.0.0-beta.4
    • H
    Directory Traversal

    @prompty/core is a Prompty core package

    Affected versions of this package are vulnerable to Directory Traversal via the file reference expansion process. An attacker can access arbitrary files available to the application process by supplying a specially crafted .prompty file containing ${file:...} references that use path traversal or absolute paths.

    How to fix Directory Traversal?

    Upgrade @prompty/core to version 2.0.0-beta.2 or higher.

    <2.0.0-beta.2