Community
    • Login

    Notepad++ release 8.9.6.1

    Scheduled Pinned Locked Moved Announcements
    14 Posts 3 Posters 312 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • donhoD Offline
      donho @donho
      last edited by

      Note:
      For fixing arbitrary code execution vulnerability via config.xml, “commandLineInterpreter” was removed, but “PowerShell here” command has been added, so I don’t think it’ll be an issue, though users who use “commandLineInterpreter” should be notified.
      However, we might have some complains for fixing arbitrary code execution vulnerability via shortcuts.xml, due to the security warning, if the binary is not located under one of the fowing loctions:

      • C:\Program Files,
      • C:\Program Files (x86)
      • C:\Windows\System32
      • C:\Windows

      Unfortunately, I haven’t yet found a way to store the definate “Never show the confirmation dialog” safely. Please let me know if anyone here has some ideas.

      1 Reply Last reply Reply Quote 0
      • donhoD Offline
        donho @PeterJones
        last edited by

        @PeterJones said:

        :-(

        How about an empty supressRunAlertDialog.xml besides of notepad++exe to suppress the warning dialog?

        PeterJonesP 1 Reply Last reply Reply Quote 0
        • fml2F Online
          fml2
          last edited by

          When installing the latest version (8.9.6.1) I get the following error which I’ve never seen before:

          c75029d1-9182-43c8-a43a-283d5e325aab-image.jpeg

          Does anybody have a clue about this?

          donhoD 1 Reply Last reply Reply Quote 0
          • donhoD Offline
            donho @fml2
            last edited by

            @fml2
            Which installer did you use?

            fml2F 1 Reply Last reply Reply Quote 0
            • fml2F Online
              fml2 @donho
              last edited by PeterJones

              @donho The one I downloaded from the official web site https://notepad-plus-plus.org/downloads/v8.9.6.1/ (64 bit).

              donhoD 1 Reply Last reply Reply Quote 0
              • PeterJonesP Online
                PeterJones @donho
                last edited by PeterJones

                @donho said:

                How about an empty supressRunAlertDialog.xml besides of notepad++exe to suppress the warning dialog?

                I think that should work:

                • in a normal install, that would be in the safe/UAC-protected Program Files hierarchy, so couldn’t be created by a malicious actor without UAC
                • it would allow someone with admin privileges to make the executive decision to disable that safety feature

                It could, in theory, be made more fine-grained – the XML could contain actual information, such as a list of “additional safe directories” (like Excel allows you to specify so that you can run VBA macros even if your file is in an alternate location), so your for-loop across the safe directories could include those from that file.

                The empty file would obviously be easier to implement, but I would be fine with either solution. (And given how many CVE’s have been fixed in v8.9.4-v8.9.6.1, I don’t think my complaint about this one should prevent triggering auto-update, since I make do with existing until v8.9.7)

                donhoD 1 Reply Last reply Reply Quote 0
                • donhoD Offline
                  donho @fml2
                  last edited by donho

                  @fml2 ,

                  The one I downloaded from the official web site https://notepad-plus-plus.org/downloads/v8.9.6.1/ (64 bit).

                  I know.
                  What I need to know as information is, x64 or x86? NSIS exe Installer or MSI?

                  fml2F 1 Reply Last reply Reply Quote 0
                  • donhoD Offline
                    donho @PeterJones
                    last edited by donho

                    @PeterJones said:

                    It could, in theory, be made more fine-grained – the XML could contain actual information, such as a list of “additional safe directories” that Excel allows you to specify so that you can run VBA macros even if your file is in an alternate location, so your for-loop across the safe directories could include those from that file.

                    The empty file would obviously be easier to implement, but I would be fine with either solution. (And given how many CVE’s have been fixed in v8.9.4-v8.9.6.1, I don’t think my complaint about this one should prevent triggering auto-update, since I make do with existing until v8.9.7)

                    The empty XML file is not only easier to implement, but it is also the only viable solution IMO. I considered storing a list of user-validated commands, or even a simple boolean like “Never Alert Dialog” inside config.xml - but obviously config.xml is not in a protected directory, as described in CVE-2026-48778.

                    OTOH, supressRunAlertDialog.xml solves the issue - it can be placed by users with admin rights to restore the old behaviour back (no confirmation dialog), and we can also include it in the installer (WITHOUT by default) so the previous behaviour can be restored during the installation - with the user’s awareness.

                    Sorry for breaking the old workflow - but I cannot simply ignore this vulnerability. The reporter will publish it in 3 months anyway, with or without a fix, and it is a valid issue.

                    PeterJonesP 1 Reply Last reply Reply Quote 0
                    • PeterJonesP Online
                      PeterJones @donho
                      last edited by

                      @donho said:

                      the only viable solution IMO

                      It’s not the only viable solution. The exception list could go in suppressRunAlertDialog.xml in the Program Files directory – so the user with Admin/UAC could edit the list, but a normal user could not – and this is what I was trying to imply with my phrasing above, but apparently didn’t get that point across. There is zero difference in security between an empty suppressRunAlertDialog.xml in Program Files and a suppressRunAlertDialog.xml in Program files containing actual XML data with the list of files.

                      But as I said, I’d be fine with the simpler version.

                      donhoD 1 Reply Last reply Reply Quote 1
                      • fml2F Online
                        fml2 @donho
                        last edited by

                        @donho x64, installer (exe)

                        1 Reply Last reply Reply Quote 0
                        • donhoD Offline
                          donho @PeterJones
                          last edited by

                          @PeterJones
                          Could you pass me an example you would use for you in supressRunAlertDialog.xml?

                          PeterJonesP 1 Reply Last reply Reply Quote 0
                          • PeterJonesP Online
                            PeterJones @donho
                            last edited by PeterJones

                            @donho ,

                            Could you pass me an example you would use for you in supressRunAlertDialog.xml?

                            My thought was something like,

                            <?xml version="1.0" encoding="UTF-8" ?>
                            <NotepadPlus>
                                <RunMenuSafeDirectories>
                                    <RunDirectory>C:\Users\peter\AppData\Local\Programs\Python\Python314\</RunDirectory>
                                    <RunDirectory>c:\strawberry\perl\</RunDirectory>
                                    <RunDirectory>c:\strawberry\c\</RunDirectory>
                                </RunMenuSafeDirectories>
                            </NotepadPlus>
                            

                            or

                            <?xml version="1.0" encoding="UTF-8" ?>
                            <NotepadPlus>
                                <RunMenuSafeDirectories>
                                    <RunDirectory path="C:\Users\peter\AppData\Local\Programs\Python\Python314\" />
                                    <RunDirectory path="c:\strawberry\perl\" />
                                    <RunDirectory path="c:\strawberry\c\" />
                                </RunMenuSafeDirectories>
                            </NotepadPlus>
                            

                            (whether you prefer storing the data in the content or in an attribute)

                            These directories could then be added to the list of “safe directories” that you used in isInTrustedDirectory(), so that those directories (and their subdirectories) would be considered “safe”, too.

                            Since that XML would still be in Program Files, it would have the same level of security as a zero-byte file in the same directory, but give more granular control, so that the advanced user with UAC/Admin privileges could define certain directories that they want to consider safe, while still not allowing all directories to be in the path (thus, an attempted shortcuts.xml injection would have to know that on my system, I only allowed files in those specific extra paths, which I would presumably have some sort of protection on, so that they couldn’t be added to without my knowledge).

                            But again: I understand triggering v8.9.6.1 for auto-update without waiting for this; this would be a new feature of v8.9.7 instead. And, after looking at my suggestion, if you still decide that you wanted just the simple empty file, that will work; I just think this would be better for allowing better control, so that the unsafe-directory notification wasn’t an all-or-nothing prospect.

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post
                            The Community of users of the Notepad++ text editor.
                            Powered by NodeBB | Contributors