{"id":"CVE-2026-128065","aliases":["CVE-2026-128065","GHSA-gg5j-6742-v827"],"related":[],"kind":"vulnerability","state":"published","title":"@grpc/grpc-js: RBAC override configs in VirtualHost and Route resources are not applied","summary":"@grpc/grpc-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. From 1.14.0 through 1.14.1, XdsServer in @grpc/grpc-js-xds can acknowledge Route and VirtualHost resources while failing to apply their RBACPerRoute override configurations. The override parser is not registered under the override message type, override maps are stored under a type URL instead of the configured HTTP filter name, and VirtualHost override maps are not read. When experimental RBAC is enabled and a trusted xDS control plane supplies a broad top-level ALLOW policy with a stricter matching override, affected servers evaluate RPCs under the broad policy and can accept requests that should be denied. This issue is fixed in version 1.14.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@grpc/grpc-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. From 1.14.0 through 1.14.1, XdsServer in @grpc/grpc-js-xds can acknowledge Route and VirtualHost resources while failing to apply their RBACPerRoute override configurations. The override parser is not registered under the override message type, override maps are stored under a type URL instead of the configured HTTP filter name, and VirtualHost override maps are not read. When experimental RBAC is enabled and a trusted xDS control plane supplies a broad top-level ALLOW policy with a stricter matching override, affected servers evaluate RPCs under the broad policy and can accept requests that should be denied. This issue is fixed in version 1.14.2.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`XdsServer` in `@grpc/grpc-js-xds` does not apply `RBACPerRoute` overrides from matching Route or VirtualHost resources. When a trusted xDS control plane supplies a broad top-level ALLOW policy and a stricter override, `XdsServer` ACKs the resources but evaluates the RPC under the top-level policy.\n\n### Details\n\n### Override parser lookup uses the override message type\n\n`parseOverrideFilterConfig()` in packages/grpc-js-xds/src/http-filter.ts:225-257 looks up FILTER_REGISTRY using the override message type:\n\n`type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBACPerRoute`\nSource: https://github.com/grpc/grpc-node/blob/56567d9604b4e45cdca0d2e3c2a60ac227ee659d/packages/grpc-js-xds/src/http-filter.ts#L225-L257\n\n`setup()` in packages/grpc-js-xds/src/http-filter/rbac-filter.ts:167-173 registers the filter only under the top-level RBAC type:\n\n`type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBAC`\nSource: https://github.com/grpc/grpc-node/blob/56567d9604b4e45cdca0d2e3c2a60ac227ee659d/packages/grpc-js-xds/src/http-filter/rbac-filter.ts#L167-L173\n\nThe lookup returns null even though the registered entry contains `parseOverrideRbacConfig()`, and server.ts silently skips the override.\n\n### Override maps are keyed by type URL instead of filter name\n\n`overrideConfigMaps` in server.ts:99-102 is documented as keyed by HTTP filter name, but server.ts:169-174 stores each map under `filterConfig.typeUrl`.\n\nSource: https://github.com/grpc/grpc-node/blob/56567d9604b4e45cdca0d2e3c2a60ac227ee659d/packages/grpc-js-xds/src/server.ts#L99-L102\n\nSource: https://github.com/grpc/grpc-node/blob/56567d9604b4e45cdca0d2e3c2a60ac227ee659d/packages/grpc-js-xds/src/server.ts#L169-L174\n\nRoute overrides are later looked up by their `typed_per_filter_config` key, which is the `HttpFilter.name`. An ordinary key such as rbac therefore misses the stored map.\n\n### VirtualHost overrides are not read\n\n`handleRouteConfigurationResource()` in server.ts:225-249 reads `route.typed_per_filter_config` but never reads `virtualHost.typed_per_filter_config`.\n\nSource: https://github.com/grpc/grpc-node/blob/56567d9604b4e45cdca0d2e3c2a60ac227ee659d/packages/grpc-js-xds/src/server.ts#L225-L249\n\nWhen no override reaches the RBAC interceptor, rbac-filter.ts:125-155 evaluates the broader top-level policy.\n\n### Proof of concept\n\nSet:\n```\nGRPC_XDS_EXPERIMENTAL_RBAC=true\n```\n\nRun `XdsServer` with a protected unary handler.\n\nHave the ADS control plane deliver a Listener containing an RBAC HTTP filter named rbac with a top-level ALLOW-any policy:\n\n```\nname: rbac\ntyped_config:\n  \"@type\": type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBAC\n  rules:\n    action: ALLOW\n    policies:\n      allow-any:\n        principals: [{ any: true }]\n        permissions: [{ any: true }]\n```\n\nDeliver a matching non-forwarding route with this override:\n\n```\ntyped_per_filter_config:\n  rbac:\n    \"@type\": type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBACPerRoute\n    rbac:\n      rules:\n        action: DENY\n        policies:\n          deny-any:\n            principals: [{ any: true }]\n            permissions: [{ any: true }]\n```\n\nInvoke the protected unary method without credentials.\n\nExpected: The route-specific DENY policy rejects the RPC before the protected handler runs.\n\nObserved: `XdsServer` ACKs the resources, retains the top-level ALLOW policy, and runs the protected handler.\n\n```\nListener and RouteConfiguration: ACKED\ngRPC status: OK\nhandler invocations: 1\nresponse: PROTECTED_SECRET_RECORD_RBAC_OVERRIDE\n```\n\n### Impact\n\nUsers of `@grpc/grpc-js-xds` who are using RBAC-based authentication with override configurations may unintentionally accept some requests that should be rejected.","format":"markdown","source":"ghsa"}],"published":"2026-11-12T22:45:27.060Z","modified":"2026-11-13T02:18:56.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 1.14.0, < 1.14.2","status":"affected"}],"vendor":"grpc","product":"grpc-node","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.14.2"}],"ecosystem":"npm","package":"@grpc/grpc-js-xds","purl":"pkg:npm/%40grpc/grpc-js-xds","source":"ghsa"}],"references":[{"url":"https://github.com/grpc/grpc-node/security/advisories/GHSA-gg5j-6742-v827","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node/commit/b8f3ced4d4699338dd33dc0f7b1d68d689a31d0e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.14.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-11-13T00:38:32.882Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-128065","url":"https://www.cve.org/CVERecord?id=CVE-2026-128065","licence":"CVE Terms of Use","modified":"2026-11-13T00:39:00.201Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gg5j-6742-v827","url":"https://github.com/advisories/GHSA-gg5j-6742-v827","licence":"CC-BY-4.0","modified":"2026-11-12T23:15:03.078Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-128065","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128065","licence":"Public domain","modified":"2026-11-13T02:18:56.263Z"}],"updatedAt":"2026-11-25T22:59:50.584Z","epss":{"score":0.00448,"percentile":0.40647,"date":"2026-12-01T12:00:22.000Z"}}