# False positive with S8263

**URL:** <https://community.sonarsource.com/t/false-positive-with-s8263/180272>\
**Category:** SonarQube Cloud\
**Tags:** azuredevops, rules\
**Created:** [March 25, 2026, 12:51pm UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272 "2026-03-25T12:51:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenrikSommer-eng](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@HenrikSommer-eng](https://community.sonarsource.com/u/HenrikSommer-eng)\
**Post date:** [March 25, 2026, 12:51pm UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272/1 "2026-03-25T12:51:42Z")

</div>

Hi

You added a new rule S8263 on 16 mar 2026  
Azure Pipelines Task invocations should not be vulnerable to parameter injection attacks

I think it gives false positive.  
Example we have

`task: DotNetCoreCLI@2`  
` displayName: ‘Build ${{ parameters.buildConfiguration }}’`  
` inputs:`  
` command: build`  
` projects: ${{ parameters.projects }}`  
` arguments: '–no-restore --configuration ${{ parameters.buildConfiguration }}’`

The task does not seem to support env:  
So should it valid that or only script task?

---

<div class="post-metadata">

**Author:** ![teemu.rytilahti](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/teemu.rytilahti/32/67854_2.png) [@teemu.rytilahti](https://community.sonarsource.com/u/teemu.rytilahti)\
**Post date:** [April 16, 2026, 3:56pm UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272/4 "2026-04-16T15:56:59Z")

</div>

Hi @HenrikSommer-eng, I am terribly sorry that you had to wait so long for a response!

To your question, this is actually a true positive as `arguments` can be used to pass extra arguments to msbuild which can affect the execution (e.g., to set `BeforeBuildEvent` to execute arbitrary commands). I will find a way to improve the documentation to make this clearer, thanks a lot for the feedback!

As your example controls the build configuration, the safe solution is to limit the allowed parameters by using the values like this:

```auto
parameters:
- name: buildConfiguration
  type: string
  default: 'Debug'
  values:
  - Debug
  - Release

```

Passing through an environment variable ([which should work on all tasks](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-task?view=azure-pipelines)) does not make it secure in this case, as it will protect only against direct, shell interpolation for inputs that are passed to a shell interpreter.

Hope that helps & best wishes,

Teemu R.

---

<div class="post-metadata">

**Author:** ![HenrikSommer-eng](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@HenrikSommer-eng](https://community.sonarsource.com/u/HenrikSommer-eng)\
**Post date:** [April 17, 2026, 6:47am UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272/5 "2026-04-17T06:47:12Z")

</div>

> [@teemu.rytilahti](#):
>
> I will find a way to improve the documentation to make this clearer, thanks a lot for the feedback!

Thanks that help.

And yes the guide line should be updated because it was not clear that was problem.

---

<div class="post-metadata">

**Author:** ![teemu.rytilahti](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/teemu.rytilahti/32/67854_2.png) [@teemu.rytilahti](https://community.sonarsource.com/u/teemu.rytilahti)\
**Post date:** [May 7, 2026, 7:11pm UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272/6 "2026-05-07T19:11:55Z")

</div>

Hi again,

The improved description explaining both types of issues in more detail has been released, thanks again for reporting!

Best wishes,

Teemu R.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 9, 2026, 11:37am UTC](https://community.sonarsource.com/t/false-positive-with-s8263/180272/10 "2026-06-09T11:37:02Z")

</div>

Split this topic on June 9, 2026, 11:37am UTC

A post was split to a new topic: [Complying with azurepipelines:S8263 when env vars aren’t transmitted](https://community.sonarsource.com/t/complying-with-azurepipelines-s8263-when-env-vars-arent-transmitted/183380)
