@orpc/json-schema@0.0.0-next.6bc474e

  • latest version

    1.16.1

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    5 days ago

  • Direct Vulnerabilities

    Known vulnerabilities in the @orpc/json-schema 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
    • M
    Improperly Controlled Modification of Dynamically-Determined Object Attributes

    Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes via JsonSchemaCoercer#coerce in coercer.ts, where attacker-controlled keys from untrusted input are processed before validation by the SmartCoercionPlugin. When coercing an object, properties are collected into a plain {}, so assigning a key such as __proto__ triggers the inherited setter rather than creating an own property, causing the returned object to inherit attacker-controlled properties through the prototype chain. A second related bug allows keys like constructor or toString to resolve to Object.prototype members when looking up schema.properties[key], causing those keys to bypass unknown-property handling and select incorrect union branches.

    How to fix Improperly Controlled Modification of Dynamically-Determined Object Attributes?

    Upgrade @orpc/json-schema to version 1.14.9 or higher.

    <1.14.9