Skip to content

[Mirror PR #3280] sec: Prevent ANSI Escape Control Code Injection in Input Fields (#3201) - #32

Open
tmdeveloper007 wants to merge 1 commit into
mainfrom
mirror/3280-3201-sec-prevent-ansi-escape-injection
Open

[Mirror PR #3280] sec: Prevent ANSI Escape Control Code Injection in Input Fields (#3201)#32
tmdeveloper007 wants to merge 1 commit into
mainfrom
mirror/3280-3201-sec-prevent-ansi-escape-injection

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Owner

Upstream PR Karanjot786#3280: sec: Prevent ANSI Escape Control Code Injection in Input Fields (Karanjot786#3201)

Original PR by @knoxiboy on Karanjot786/TermUI#3280

Description

This PR prevents ANSI escape control code injection in TextInput (@termuijs/widgets) and MultilineTextInput (@termuijs/ui) by sanitizing user input and value assignments using stripAnsiControl when raw: false (default), while preserving formatting when raw: true.

Related Issue

Closes Karanjot786#3201

Which package(s)?

@termuijs/widgets, @termuijs/ui, @termuijs/core

Type of Change

  • 🐛 Bug fix ( ype:bug)
  • ✨ Feature ( ype:feature)
  • 📝 Docs ( ype:docs)
  • 🧪 Tests

Mirrored to fork by Mavis TermUI Bot. This PR cannot be submitted upstream as tmdeveloper007 has no write access to Karanjot786/TermUI.

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.

[Security]: Prevent ANSI Escape Control Code Injection in Input Fields

2 participants