cvelo
P4 · Info

Bypass of additionalProperties validation via nested object property names in github.com/qri-io/jsonschema

  • GO-2026-6941

Description

In github.com/qri-io/jsonschema, Properties.ValidateKeyword, PatternProperties.ValidateKeyword, and AdditionalProperties.ValidateKeyword call currentState.UpdateEvaluatedPropsAndItems(subState) after validating nested object properties, merging the child object's evaluated property names into the parent object's validation state. Consequently, any property on the parent object that shares a name with a validated property in a nested child object is treated as already evaluated on the parent, bypassing additionalProperties and unevaluatedProperties validation on the parent object.

Text from the OSV record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • github.com/qri-io/jsonschemaGo

    Affected versionsFixed in
    from 0.2.0 onwardsnone stated

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.