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.
{
"review_status": "REVIEWED",
"url": "https://pkg.go.dev/vuln/GO-2026-6941"
}{
"imports": [
{
"path": "github.com/qri-io/jsonschema",
"symbols": [
"AdditionalItems.ValidateKeyword",
"AdditionalProperties.ValidateKeyword",
"AllOf.ValidateKeyword",
"AnyOf.ValidateKeyword",
"Contains.ValidateKeyword",
"DependentSchemas.ValidateKeyword",
"Else.ValidateKeyword",
"If.ValidateKeyword",
"Items.ValidateKeyword",
"Not.ValidateKeyword",
"OneOf.ValidateKeyword",
"PatternProperties.ValidateKeyword",
"Properties.ValidateKeyword",
"PropertyNames.ValidateKeyword",
"RecursiveRef.ValidateKeyword",
"Ref.ValidateKeyword",
"Schema.Validate",
"Schema.ValidateBytes",
"Schema.ValidateKeyword",
"SchemaDependency.ValidateKeyword",
"Then.ValidateKeyword",
"UnevaluatedItems.ValidateKeyword",
"UnevaluatedProperties.ValidateKeyword"
]
}
]
}