Skip to content

One WordPress user had two roles. The finding was wrong.

WordPress multiple user roles can make a security check misleading. A false SVG upload warning showed me why capabilities matter more than a label.

Updated 2 min read
One user. Two roles. One wrong finding. Drawing of one account card with two role badges and an SVG file.

Adapted from my LinkedIn post originally shared on 2026-11-06. This journal version was prepared on 27 November 2026.

A security check said editors on a WordPress site could upload SVG files. They could not. Because SVG files can contain scripts, the warning was worth taking seriously. I wanted to know why it appeared, and WordPress multiple user roles turned out to be the answer.

The answer was WordPress multiple user roles. The check picked one account for each role. For Editor, the first account it found was an administrator who also held the Editor role. A plugin allowed administrators to upload SVG files. The check saw that account could upload them and attributed the capability to editors in general.

A role is not the same as an account’s capabilities

WordPress roles group capabilities, which determine what a user can do. An account can have more than one role, and plugins can change capabilities. The WordPress roles and capabilities documentation explains the distinction.

The profile screen normally shows one role dropdown, so a person looking only there can miss the more complicated account. Plugins and command-line tools can add roles. The practical result is that a user labelled Editor in one context may also have capabilities granted by another role.

In this case, the check did not prove that an editor-only account could upload SVG. It proved that the selected multi-role account could. Those are different findings.

How I would test a role-based warning

First, inspect the account used by the check and list all of its roles. Then test with an account that holds only the role named in the warning. Check whether a plugin or custom code changes the relevant capability, and record the exact environment and result.

For an upload finding, that means trying the action with a suitable test file and an editor-only test account, in a safe test environment. A blocked attempt is evidence about that setup and account, not a universal statement about every WordPress site.

If the single-role test behaves differently, the security finding needs investigation. The check should not use the first matching multi-role user as if that person represents every user in the role.

Why false positives matter

A warning about a real risk should get attention. A warning that says the wrong group has a capability can send an owner looking in the wrong place and make the next alert easier to dismiss.

I now look for multi-role accounts before trusting a role-based result. The useful question is not just which label an account has. It is which capabilities it actually has, why it has them, and whether the finding describes that evidence accurately.

What a useful report should say

A useful finding identifies the tested account, its roles, the capability being checked, and the result. If an account has extra permissions, describe those rather than assigning its result to everyone who shares one of its roles. Repeat the test with an appropriate single-role account before drawing a conclusion about that role.

The aim is not to ignore SVG warnings. It is to make the warning specific enough for a site owner to know what to investigate.

This same discipline applies when checking whether a plugin conflict is real. I described the process in WordPress conflict triage.

Let’s talk about a product problem.

Email is the fastest route. I answer everything that’s a real question.