---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [security](../index.md) / SecurityFinding

# Interface: SecurityFinding

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:71](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L71)

A single security finding.

## Properties

### baselined?

> `optional` **baselined**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:88](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L88)

True when the finding matches the baseline.

***

### category

> **category**: [`SecurityCategory`](../type-aliases/SecurityCategory.md)

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:75](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L75)

***

### confidence

> **confidence**: [`SecurityConfidence`](../type-aliases/SecurityConfidence.md)

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:74](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L74)

***

### cwe

> **cwe**: readonly `string`[]

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:76](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L76)

***

### docsUrl

> **docsUrl**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:82](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L82)

***

### fingerprint

> **fingerprint**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:84](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L84)

Stable identifier used by baselines; survives line moves.

***

### location

> **location**: [`SecurityLocation`](SecurityLocation.md)

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:78](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L78)

***

### message

> **message**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:77](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L77)

***

### notOnPathCartridge?

> `optional` **notOnPathCartridge**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:100](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L100)

Set to the cartridge name when the file is in a cartridge that isn't on the cartridge path the scan used.
The site doesn't run that code; route rules can't see how it would compose, so treat these findings as
lower priority unless the cartridge is on another site's path.

***

### referenceCartridge?

> `optional` **referenceCartridge**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:94](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L94)

Set to the cartridge name when the finding is in an SFRA or SiteGenesis
reference cartridge (code the project deploys but usually doesn't edit;
fix it with an overlay cartridge).

***

### remediation

> **remediation**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:81](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L81)

***

### ruleId

> **ruleId**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:72](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L72)

***

### severity

> **severity**: [`SecuritySeverity`](../type-aliases/SecuritySeverity.md)

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:73](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L73)

***

### snippet

> **snippet**: `string`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:80](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L80)

The source line the finding starts on, trimmed.

***

### suppression?

> `optional` **suppression**: `object`

Defined in: [packages/b2c-tooling-sdk/src/security/types.ts:86](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/types.ts#L86)

Set when an inline comment suppresses the finding.

#### kind

> **kind**: `"inline"`

#### reason?

> `optional` **reason**: `string`
