You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when we want to query metadata by key it will return all meta if our requested key not found. is this a bug? or its the normal behaviour, imagine we store sensitive data in meta, all will be shown publicly naked
To Reproduce
Steps to reproduce the behavior:
1.install woocommerce
2. import products
3. add "testing" meta to 1 latest product
4. query like this:
query NewQuery {
products(where: {type: SIMPLE}, first: 5) {
edges {
node {
... on SimpleProduct {
name
}
metaData(key: "testing") {
value
key
}
}
}
}
}
now query any invalid meta key. example:
query NewQuery {
products(where: {type: SIMPLE}, first: 5) {
edges {
node {
... on SimpleProduct {
name
}
metaData(key: "testing123") {
value
key
}
}
}
}
}
Expected behavior
should not show data we not requested
Screenshots
when meta key found:
when meta key not found:
Desktop (please complete the following information):
OS: linuxmint
Browser ms edge
Version Version 128.0.2739.54 (Official build) (64-bit)
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Plugin Versions
WooGraphQL Version: …
WPGraphQL Version: …
WordPress Version:
WooCommerce Version:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
erikdemarco
changed the title
"_wpcom_is_markdown" always included when meta key not found
When meta key not found, all meta will be returned
Oct 1, 2024
Describe the bug
when we want to query metadata by key it will return all meta if our requested key not found. is this a bug? or its the normal behaviour, imagine we store sensitive data in meta, all will be shown publicly naked
To Reproduce
Steps to reproduce the behavior:
1.install woocommerce
2. import products
3. add "testing" meta to 1 latest product
4. query like this:
Expected behavior
should not show data we not requested
Screenshots
when meta key found:
when meta key not found:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Plugin Versions
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: