PSMP 14.6+ – Copy/paste via PSMP causes indentation issues and leading “#” in vi/vim

PSMP 14.6+ – Copy/paste via PSMP causes indentation issues and leading “#” in vi/vim

100
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:04 PM


Symptom


After upgrading to 14.6+, coping and pasting into a PSMP session causes indentation issues with leading “#” symbols in vi/vim.

Refer to the screenshots below (vscode editor on the right, vi in a PSMP session on the left). There is a leading '#' in each line after pasting text into vi. 

image.png

This issue was not seen in earlier versions (i.e.: 14.2 or lower).

 



Environment


14.6 Privileged Access Manager (PAM, self-hosted) PSMP

PSMP 14.6+



Cause


New version of PSM for SSH added support for bracketed paste. When bracketed paste is enabled on the target host vim expects the pasted input to be provided within escape sequences, but these are consumed by PSMP to reliably audit pasted multiline commands.R&D is still investigating the behavior. No bug was logged for this as of November 11th, 2025.



Resolution


As an immediate workaround you can apply one of proposed solutions:

  1. In PVWA options Connection Components->PSMP-SSH->Target Settings->Client Specific->add SanitizeBracketedPaste and set it to "No".This can be set globally in administration settings or in each platform. This option disables consuming bracketed paste escape sequences when pasting.
  2. Enforce paste mode in vim. Type ":set paste" before pasting the lines, then ":set no paste". Or type "set t_BE=" to disable bracketed mode in vim.
  3. Disable bracketed paste on an individual target by editing the file ".inputrc".  This file can be found in each user’s /home directory.  Put the following line at the end of the .inputrc file:  "set enable-bracketed-paste off" 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000sgNCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail