Skip to content

Comments

VCST-4664: Add masking to cybersource cvv#2197

Open
basilkot wants to merge 2 commits intodevfrom
fix/VCST-4664
Open

VCST-4664: Add masking to cybersource cvv#2197
basilkot wants to merge 2 commits intodevfrom
fix/VCST-4664

Conversation

@basilkot
Copy link
Contributor

@basilkot basilkot commented Feb 24, 2026

Description

References

Jira-link:

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.43.0-pr-2197-c837-c83727fd.zip


Note

Low Risk
UI/input-configuration change limited to CVV field rendering and local typings; no changes to tokenization or payment authorization logic.

Overview
Updates the CyberSource payment microform CVV (securityCode) field to be masked by configuring it as a password-style input with bullet masking and input-level styling.

Extends the local IFieldOptions TypeScript typing to include the new type, masking, and styles options passed to microform.createField.

Written by Cursor Bugbot for commit c83727f. This will update automatically on new commits. Configure here.

@basilkot basilkot requested a review from a team as a code owner February 24, 2026 17:51
@basilkot basilkot requested review from Andrew-Orlov, Copilot, goldenmaya, muller39 and yuskithedeveloper and removed request for a team February 24, 2026 17:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds masking functionality to the CVV/security code field in the CyberSource payment form component. The change enhances security by visually obscuring the security code as users type, similar to password fields.

Changes:

  • Extended the IFieldOptions TypeScript interface to support masking and custom styles configuration
  • Applied masking with bullet character (\u2022) and -webkit-text-security: disc to the security code field for visual obfuscation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

"font-size": "1rem",
"-webkit-text-security": "disc",
},
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsupported microform field options used

Medium Severity

microform.createField("securityCode", ...) now passes type, masking, and per-field styles. If CyberSource Flex Microform doesn’t support these options for createField, they may be ignored (leaving CVV unmasked) or cause field initialization to fail at runtime.

Fix in Cursor Fix in Web

"font-size": "1rem",
"-webkit-text-security": "disc",
},
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Masking relies on WebKit-only CSS

Low Severity

The masking implementation uses "-webkit-text-security": "disc", which is not supported in non-WebKit browsers, so the CVV may remain visible depending on browser and whether type/masking are honored by the microform library.

Fix in Cursor Fix in Web

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant