Dapr 1.19.3, released 2 December 2026, refuses wildcard and topicsPattern subscriptions that bypassed topic scopes. Audit subscriptions before upgrading.
What changed on 2 December 2026
Dapr 1.19.3, released on 2 December 2026, is a patch release with a long list of security fixes. One of them changes how pub/sub topic restrictions treat wildcard subscriptions, and it can change the behaviour of running applications after an upgrade, so it deserves a careful read before you roll the release out.
Dapr lets a pub/sub component restrict which applications can use which topics through three metadata settings: allowedTopics, protectedTopics and the per-application subscriptionScopes. The release notes describe the problem plainly: these settings were compared with the topic of a subscription as an exact string. Several components expand one subscription to more than one topic. MQTT supports + and # wildcards, the in-memory component supports *, and Pulsar subscriptions can carry a topicsPattern metadata entry that replaces the topic with a pattern.
A wildcard is never equal to the name of a protected topic, so the check treated it as a subscription to some other, unprotected topic. The release notes state the impact: an application that was not scoped to a protected topic could subscribe to a wildcard matching it and receive its messages, and with Pulsar an application could pass topicsPattern to receive from any matching topic, whatever the restrictions. You were affected if you rely on these settings to keep applications from reading each other's topics on a shared pub/sub component that supports wildcard subscriptions.
The new rules
The fix in 1.19.3 adds three rules, quoted here in substance from the release notes:
- When
protectedTopicsis set, a subscription to a topic containing*,#,+or>, or starting with$share/, is refused unless that exact topic string is listed for the application insubscriptionScopes. - When any of the three settings applies, a subscription with
topicsPatternin its metadata is refused. AtopicsPatternset in the component metadata itself is not affected. - A message from a protected topic that reaches a subscription to a different topic is dropped, unless the application is scoped to that protected topic.
Publishing is not changed.
The first two rules act when a subscription is created, so an application whose subscription is now refused stops receiving on it after the upgrade. The third acts on each delivered message, as a second line of defence in case a component expands a subscription in a way the first rule did not anticipate.
Audit before you upgrade
You can predict which subscriptions the new rules will refuse by reading your component definitions and subscription declarations. The script below encodes the rules as the release notes describe them. It is an audit aid, not Dapr's implementation; treat a disagreement with a real sidecar as a reason to look closer, with the sidecar as the authority.
WILDCARD_CHARS = set("*#+>")
def parse_scopes(value):
"""'app1=t1,t2;app2=t3' -> {'app1': {'t1', 't2'}, 'app2': {'t3'}}"""
scopes = {}
for part in filter(None, (p.strip() for p in value.split(";"))):
app, _, topics = part.partition("=")
scopes[app.strip()] = {t.strip() for t in topics.split(",") if t.strip()}
return scopes
def is_wildcard(topic):
return bool(WILDCARD_CHARS & set(topic)) or topic.startswith("$share/")
def audit(metadata, subscriptions):
topics = lambda key: {t.strip() for t in metadata.get(key, "").split(",") if t.strip()}
protected, allowed = topics("protectedTopics"), topics("allowedTopics")
scopes = parse_scopes(metadata.get("subscriptionScopes", ""))
restricted = bool(protected or allowed or scopes)
for app, topic, sub_md in subscriptions:
if restricted and "topicsPattern" in sub_md:
yield app, topic, "refused: topicsPattern in subscription metadata"
elif protected and is_wildcard(topic) and topic not in scopes.get(app, set()):
yield app, topic, "refused: wildcard on a component with protectedTopics"
else:
yield app, topic, "unchanged"
md = {"protectedTopics": "refunds/approved",
"subscriptionScopes": "ledger=refunds/approved;helpdesk=cases/+"}
subs = [("ledger", "refunds/approved", {}), ("helpdesk", "cases/+", {}),
("analytics", "refunds/+", {}), ("analytics", "#", {})]
for row in audit(md, subs):
print(row)Collect the subscriptions from wherever your applications declare them: Subscription resources, programmatic subscription endpoints, and streaming subscriptions opened in code. The last two are easy to miss because they do not appear in any manifest.
The general lesson: patterns are not names
The root cause is a pattern that appears in many authorization systems. A rule is written in terms of names, such as "only the ledger may read refunds/approved", and a request arrives in terms of a pattern, such as "everything under refunds". Comparing the pattern to the name as strings answers the wrong question. The right question is whether the set of names the pattern can expand to overlaps the protected set, and if the system cannot answer that, it has to refuse.
Dapr's fix takes the second route for protected topics: rather than computing whether a wildcard could match a protected topic, which depends on each broker's wildcard syntax, it refuses wildcards unless the exact wildcard string was granted. That is cruder, but it is decidable and it fails closed. The delivery filter then checks the concrete topic of each message, where the name is known. If you build authorization for agents or tools that accept patterns, such as file globs, URL prefixes or query filters, the same two layers apply: decide at request time whether the pattern is allowed, and check each concrete result as it is produced.
Deciding what each refused subscription should become
Each refused subscription is one of three things.
- An intended wildcard. The help desk's
cases/+is a deliberate wildcard over topics it should read. List the exact wildcard string in that application'ssubscriptionScopes, and check that no protected topic matches it. - An over-broad wildcard. Analytics subscribed to
#because it was convenient. Replace it with explicit topics, or with a narrower wildcard that matches no protected topic and is listed in its scopes. - A real need for protected data. If analytics genuinely needs refund events, scope it to
refunds/approvedexplicitly, or better, publish a reduced event to a separate topic designed for analytics. Either way the access becomes visible in configuration and reviewable.
Tradeoffs and failure modes
- Silent loss of messages after the upgrade. A refused subscription means the application stops receiving those messages. Run the audit, fix the configuration, and watch subscription errors in sidecar logs during the rollout.
- Exact-string matching for wildcards. Listing
cases/+does not permitcases/#. Configuration has to match what the code subscribes to, character for character. - Mixed versions during rollout. Sidecars are upgraded per pod. While old and new sidecars coexist, the same subscription can be accepted on one replica and refused on another. Plan the rollout so the configuration change comes first and is valid under both behaviours.
- The delivery filter is a backstop. It drops protected messages that reach the wrong subscription. If you see such drops after the upgrade, a component is expanding subscriptions in a way your configuration did not account for.
Verification
After upgrading a test environment, confirm three things. The application scoped to a protected topic still receives on it. An application not scoped to it, subscribing with a wildcard that matches it, is refused or receives nothing from it. And publishing from every application behaves exactly as before. Publish a synthetic event to each protected topic and check which applications log it.
Primary references: the Dapr 1.19.3 release notes, section on pub/sub topic restrictions and wildcard subscriptions, published 2 December 2026; the Dapr documentation on pub/sub topic scoping; and the corresponding change in the dapr/dapr repository.