New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sap/approuter

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/approuter - npm Package Compare versions

Comparing version 16.7.1 to 16.7.2

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Change Log

## 16.7.2 - 2024-09-04
### Fixed
- Improved Missing zone information" error message
- Request input validation.
## 16.7.1 - 2024-08-23

@@ -10,0 +16,0 @@

2

lib/utils/ias-utils.js

@@ -33,3 +33,3 @@ 'use strict';

if (!req.zoneInfo){
return cb('Missing zone information');
return cb('Missing zone information. Check IAS configuration and trust. See KBA 3479740.');
}

@@ -36,0 +36,0 @@ iasOptions.tenant = tenant;

@@ -44,6 +44,14 @@ 'use strict';

buildAppRouterUrl: function (req) {
const allowedProtos = ['http', 'https'];
const reqHeaders = req.headers;
const forwardedProtocol = reqHeaders['x-forwarded-proto'];
const host = getRedirectHost(req);
if (process.env.ACCEPTED_FORWARD_PROTOCOLS) {
allowedProtos.push(process.env.ACCEPTED_FORWARD_PROTOCOLS);
}
if (forwardedProtocol && !allowedProtos.includes(forwardedProtocol)) {
const error = new VError('Invalid request protocol: ' + forwardedProtocol);
error.status = 400;
throw error;
}
if (forwardedProtocol) {

@@ -50,0 +58,0 @@ return forwardedProtocol + '://' + host;

{
"name": "@sap/approuter",
"description": "Node.js based application router",
"version": "16.7.1",
"version": "16.7.2",
"repository": {},

@@ -6,0 +6,0 @@ "main": "approuter.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc